Hey there,
this is my first post
And also the first project I have to create a post about, haha. Anyways, if you have any feedback, feel free! I was actually wondering if I did something wrong because the constellation does not look like Orion at all. In the picture below you can see the 3d-constellation I made.
No, my 3D constellation looks the same, there are definitely some stars missing for sure!
You need to use the 3d method for the scatterplot. (you used the 2-d method).
There are a number of things you could do with the plot. For one, increasing the marker size.
Ex:
fig3d = plt.figure()
ax3D = fig3d.add_subplot(1,1,1, projection="3d")
ax3D.set_facecolor('black')
#plt.gca().patch.set_facecolor('white')
ax3D.grid(False)
ax3D.scatter(x,y,z, c='gold', marker = '*', s= 100)
#plt.title('3D Constellation: Orion')
#get rid of panes
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))
plt.show()
Also, see documentation:
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.html