Constellation Project: Python Data Visualization

Hi!

This my post of the Orion Constellation Project implemented for Python’s Data Visualization Course.

Any suggestions, comments or criticisms will be welcomed.

Alex

Beyond looking at the code it is also a good idea to show output of said code cells for the general audience looking at the notebook.

Also, you need to use the scatter method for the 3d plot. As of now you’re using the 2d plt.scatter method.

See the docs here.

Ex:

Summary
fig3d = plt.figure()
ax3D = fig3d.add_subplot(1,1,1, projection="3d")
ax3D.set_facecolor('black')
ax3D.grid(False)
ax3D.scatter(x,y,z, c='gold', marker = '*', s= 90)

plt.title('3D Constellation: Orion')

#get rid of panes, optional
ax3D.w_xaxis.set_pane_color((0, 0, 0, 1.0))
ax3D.w_yaxis.set_pane_color((0, 0, 0, 1.0))
ax3D.w_zaxis.set_pane_color((0, 0, 0, 1.0))

1 Like