Advertisement
elena1234

3D matplotlib scatter plot

Aug 7th, 2023 (edited)
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | Source Code | 0 0
  1. from mpl_toolkits.mplot3d import Axes3D
  2.  
  3. fig = plt.figure()
  4. ax = fig.add_subplot(111, projection='3d')
  5. ax.scatter(df['age'],df['physical_score'],df['test_result'],c=df['test_result'])
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement