Tweaking axes_grid example

http://matplotlib.sourceforge.net/examples/axes_grid/scatter_hist.html

This is something I’d like to be able to produce, but for millions of records, where the center will look like one undifferentiated mass of dark blue.

Is there a way to let something like that scale better to large sizes? For instance, is it possible to have a point be one pixel and an RGBA color of 00000001 (black color one notch away from complete transparency)? Or for another approach, is it possible to say "I want the highest value to be the darkest color, e.g. black and everything else to be greyscale against its percentage of the maximum value?

Other suggestions?

···


Christos Jonathan Hayward
Jonathan Hayward, an Orthodox Christian author.

AmazonAuthor BioEmailFacebookGoogle PlusKindleLinkedInTwitterWebWhat’s New?

I invite you to visit my “theology, literature, and other creative works” site. See a random page!

Have you taken a look at hexbin()? It is usually what I use for situations like this.

Cheers!

Ben Root

···

On Thursday, June 14, 2012, Jonathan Hayward wrote:

http://matplotlib.sourceforge.net/examples/axes_grid/scatter_hist.html

This is something I’d like to be able to produce, but for millions of records, where the center will look like one undifferentiated mass of dark blue.

Is there a way to let something like that scale better to large sizes? For instance, is it possible to have a point be one pixel and an RGBA color of 00000001 (black color one notch away from complete transparency)? Or for another approach, is it possible to say "I want the highest value to be the darkest color, e.g. black and everything else to be greyscale against its percentage of the maximum value?

Other suggestions?