<p>I am currently doing an Astronomy internship at an institute and one of my tasks includes preparing a 3D scatterplot tool for the Chirp mass, effective spin and the redshift for binary mergers (NS-NS, NS-BH, BH-BH), and I am not sure which tool to use. I found a few resources online, out of which, the most useful source I could find gave the following plot:
<a href="https://i.sstatic.net/FGWjH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FGWjH.png" alt="enter image description here" /></a>
But I feel the image is not too clear and is not too useful (I still haven't labelled the axes). The actual graph is dynamic and can be rotated, zoomed-in/out, etc. but the 3D space on which the graph is being plotted seems to be quite restricted. I was wondering if there are any  better resources to prepare the scatterplot? I was using python initially; however, at least the method that I am using produced a static model.</p>

CC BY-SA 4.0
2023-01-09T10:49:49.927Z
So you are not asking for means to produce a 3D scatter plot (like the title suggests), but rather for a tool which gives you a dynamic or interactive 3D scatter plot which you can manipulate live?
planetmaker
CC BY-SA 4.0
2023-01-09T10:56:51.607Z
with matplotlib / python: https://rukshanpramoditha.medium.com/creating-interactive-3d-plots-in-matplotlib-7200e7514fec (search for "matplotlib 3d scatter plot dynamic" and you get zillions of entries)
planetmaker
CC BY-SA 4.0
2023-01-09T12:52:46.570Z
Gnuplot can do this http://www.gnuplot.info/
Greg Miller
CC BY-SA 4.0
2023-01-10T01:45:51.500Z
Different but related in Academia SE [Scientific paper with 3D scatterplot in supplementary information; I can add a video but how to let readers rotate/zoom interactively?](https://academia.stackexchange.com/q/184841/69206)
uhoh
CC BY-SA 4.0
2023-01-10T02:00:40.790Z
I think Python's Matplotlib has a feature that scales the color or saturation with "distance" from viewer. It's not perfect but it's better than nothing. From https://matplotlib.org/3.5.0/tutorials/toolkits/mplot3d.html#scatter-plots see `depthshade=True ` and [this answer to *3D pyplot scatter opacity by depth*](https://stackoverflow.com/a/62402507/3904031) You can also set the colors and sizes of the individual markers from any calculated array you supply.
uhoh
<raw-data>
What is a good 3D scatter plot tool?
noob anomaly
# What is a good 3D scatter plot tool?

(Asked by: username_0 on 2023-01-09)

I am currently doing an Astronomy internship at an institute and one of my tasks includes preparing a 3D scatterplot tool for the Chirp mass, effective spin and the redshift for binary mergers (NS-NS, NS-BH, BH-BH), and I am not sure which tool to use. I found a few resources online, out of which, the most useful source I could find gave the following plot:
[![enter image description here](https://i.sstatic.net/FGWjH.png)](https://i.sstatic.net/FGWjH.png)
But I feel the image is not too clear and is not too useful (I still haven't labelled the axes). The actual graph is dynamic and can be rotated, zoomed-in/out, etc. but the 3D space on which the graph is being plotted seems to be quite restricted. I was wondering if there are any better resources to prepare the scatterplot? I was using python initially; however, at least the method that I am using produced a static model.

**Tags:** raw-data

> **Comments:**
> **username_1**: So you are not asking for means to produce a 3D scatter plot (like the title suggests), but rather for a tool which gives you a dynamic or interactive 3D scatter plot which you can manipulate live?  
> **username_1**: with matplotlib / python: https://rukshanpramoditha.medium.com/creating-interactive-3d-plots-in-matplotlib-7200e7514fec (search for "matplotlib 3d scatter plot dynamic" and you get zillions of entries)  
> **username_2**: Gnuplot can do this http://www.gnuplot.info/  
> **username_3**: Different but related in Academia SE [Scientific paper with 3D scatterplot in supplementary information; I can add a video but how to let readers rotate/zoom interactively?](https://academia.stackexchange.com/q/184841/69206)  
> **username_3**: I think Python's Matplotlib has a feature that scales the color or saturation with "distance" from viewer. It's not perfect but it's better than nothing. From https://matplotlib.org/3.5.0/tutorials/toolkits/mplot3d.html#scatter-plots see `depthshade=True ` and [this answer to *3D pyplot scatter opacity by depth*](https://stackoverflow.com/a/62402507/3904031) You can also set the colors and sizes of the individual markers from any calculated array you supply.  

---

## 0 answers

