[AstroPy] AstroPy Digest, Vol 74, Issue 1

John K. Parejko john.parejko@yale....
Thu Nov 1 15:44:18 CDT 2012

You can specify the bins argument as the lower bound of each bin:

bins = np.arange(0,600)

matplotlib's help for hexbin is quite good, accessible via help within python, or the matplotlib api website:



On 1Nov 2012, at 16:34, Sebastian wrote:

> On a followup hexbin question that I'm having some trouble with:
> Is there a simple way to rescale the zmin and zmax values for the colorscale in the z dimension? 
> For example i have the following hexbin map: "https://dl.dropbox.com/u/28810956/hexbin.png",  and wish to re-scale the Z data counts to 0 --> 600, instead of ~-370 --> 900?
> many thanks in advance,
> - Sebastian

More information about the AstroPy mailing list