Orion Constellation - Python Data Visualization Project

Jupyter Notebook Link

I just finished the constellation project within the Data Science Path, and I learnt more about data visualization in a 3D space. While it did take me sometime to get right, as I messed up the syntax for declaring the axes as a 3d projection I figured it out in the end and was also able to fix the z-axis issue I had.

One issue I had which I couldn’t figure out however was finding a way to change the background color of the grid space in the 3d scatter plot. As I wasn’t able to do so I scrapped that code and just went with the default parameters for the scatter for coloring. If anyone has any solution to implement that I would love to hear it. Thanks!

Welcome to the forums! :star2: :milky_way:

You can change the color on all three planes.

See here for an example:

Or, if you want to get rid of them altogether, you can use something like this:

ax3d.w_xaxis.set_pane_color((0.0, 0.0, 0.0, 0.0))
ax3d.w_yaxis.set_pane_color((0.0, 0.0, 0.0, 0.0))
ax3d.w_zaxis.set_pane_color((0.0, 0.0, 0.0, 0.0))

But, it’s helpful to also consult the Matplotlib documentation on 3d scatterplots. Ex::


Thanks for your help!

1 Like