Soumyabojaraj/codecademy-constellation/blob/main/constellation (2).ipynb

This is my orion constellation project. Reviews are welcome. Thank you

Congrats on finishing up. I think it’s worth having a second look at your 2nd figure. It hasn’t actually rendered in 3D because the standard plt.scatter function is just a 2D plotting function.

You need to use the .scatter method of a 3D axis. If you retain a reference to the axis you created (similar to the following)-
ax3d = fig_3d.add_subplot(1,1,1,projection="3d")

you can then use it to call the correct .scatter method-
constellation3d = ax3d.scatter(x,y,z, color = "green")

which should give you an actual 3D plot.

1 Like

Thank you for the feedback.

1 Like