Please let me know if any more can be added in the following 2d and 3d plotting. Features or stuff that can be improved for next project or anything like that which should be kept in mind
2d plot
fig=plt.figure(figsize=(10,8))
fig.add_subplot(1,1,1)
plt.title("Orion Constellation Visualisation 2d")
plt.xlabel('x axis')
plt.ylabel('y axis')
plt.scatter(x,y,c = y , cmap = 'viridis')
plt.colorbar()
plt.show()
3d plot
fig_3d=plt.figure()
#fig_3d.add_subplot(1,1,1,projection='3d')
ax=plt.subplot(projection='3d')
constellation3d=plt.scatter(x,y,z,alpha=1,c=y,cmap='Dark2')
ax.set_xlabel('x coordinate')
ax.set_ylabel('y coordinate')
ax.set_zlabel('z coordinate')
plt.title("Orion Constellation Visualisation 3d")
plt.colorbar()
plt.show()
Find the code to whole code here