2d & 3d Visualization using Matplotlip (Scatter Diagram)

#%matplotlib notebook
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D

x = [-0.410.570.070.00, -0.29, -0.32,-0.50,-0.23, -0.23]
y = [4.127.712.369.1013.358.137.1913.25,13.43]
z = [2.060.841.562.072.361.720.661.25,1.38]
fig = plt.figure()
plt.subplot(1,1,1)
plt.scatter(x,y)
#plt.show()
fig_3d = plt.figure()
projection = "3d"
plt.subplot(1,1,1,projection = "3d")
constellation3d = plt.scatter(x,y,z)
plt.show()

Comments

Popular posts from this blog

Binomial Test in Python

Slicing and Indexing in Python Pandas

Python Syntax and Functions Part2 (Summary Statistics)