Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created January 10, 2018 19:08
Show Gist options
  • Save dipanjanS/a78cba8c6e1640833d165a9dbc9aba07 to your computer and use it in GitHub Desktop.
Save dipanjanS/a78cba8c6e1640833d165a9dbc9aba07 to your computer and use it in GitHub Desktop.
# 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