On Tue, May 5, 2009 at 11:47 AM, Jose Gomez-Dans <jgomezd...@gmail.com>wrote:
> 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?
You might try looking at pyplot.hexbin:
http://matplotlib.sourceforge.net/examples/pylab_examples/hexbin_demo.html
Ryan
--
Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users