Created
January 10, 2018 19:08
-
-
Save dipanjanS/a78cba8c6e1640833d165a9dbc9aba07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Visualizing 3-D numeric data with Scatter Plots | |
| # length, breadth and depth | |
| fig = plt.figure(figsize=(8, 6)) | |
| ax = fig.add_subplot(111, projection='3d') | |
| xs = wines['residual sugar'] | |
| ys = wines['fixed acidity'] | |
| zs = wines['alcohol'] | |
| ax.scatter(xs, ys, zs, s=50, alpha=0.6, edgecolors='w') | |
| ax.set_xlabel('Residual Sugar') | |
| ax.set_ylabel('Fixed Acidity') | |
| ax.set_zlabel('Alcohol') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment