How can I make a scatter plot like the following, where the density of points represents the magnitude of the scalar field at that point. Consider for example the probability density for an atom:
I managed to plot something like this as a color plot (see my question and the pictures here: https://stackoverflow.com/questions/36113331/pcolormesh-in-polar-coordinates) but I didn't find any option to make such a scatter plot as above.
A requirement is that it should be done with free software for linux. Preferences:
- pgfplots or pstricks
- mathplotlib or another python library
I am interested in such types of plots in 2d as well as in 3d.