From: Jose Gomez-D. <jgo...@gm...> - 2009-05-05 16:47:56
|
Hi, I would like to plot a density slice scatter plot (when you have lots of points superimposed, it's very useful). An example from IDL/envi is here: < http://www2.geog.ucl.ac.uk/%7Eplewis/geog2021/practical1/scatter3.gif> My rustic approach to solving this problem has been to bin all my data points into a 2D array (each point that falls in a given cell adds one to that cell), and then use the c argument in scatterplot to map the color to the number of samples in the corresponding bin. Is there a better way of achieving this, as I need a fair bit of tweaking to get the color scales right? Thanks! J |