Project: Visualizing the Orion Constellation

Hi, i just finish my project and I have a question. How should I do to get bigger markers in the 3D scatterplot.

Any feedback is most welcome.

1 Like

Any sort of labelling is always a good sign so well done for adding them. You can adjust the size of the markers with the s keyword argument like ax3d.scatter(x, y, z, s=30), see the docs for info-

It’s hard to be sure from the image but have you tried changing the angle on that 3d plot. It’s looke a little like those markers are on the same z-plane which can occur if you use the stanard matplotlib.pyplot.scatter function instead of the 3d axis method. Check that very carefully.

Thanks tgretim for you comments.
You’ve been right.
I check the code and I saw that the chart was only in 2D. Also, with that code, before I couldn’t use the parameter ‘s’. I got an Error. This was the reason because I ask for the way to change the size of the markers.
So, I changed the old code for this one, and I got the next result.

fig_3d = plt.figure()
constellation3d = fig_3d.add_subplot(1,1,1, projection=“3d”)
constellation3d.scatter(x,y,z, c=‘red’, marker=’*’, label = “Orion’s stars”)
plt.title(‘Orion Constellation’, fontsize=15)
plt.xlabel(“Orion’s x Coordinates”)
plt.ylabel(“Orion’s Y Coordinates”)

Figura 3D correcta
Thanks again for the help!

1 Like