[AstroPy] AstroPy Digest, Vol 74, Issue 1

Sebastian sebas0@gmail....
Thu Nov 1 15:34:21 CDT 2012


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

On Thu, Nov 1, 2012 at 2:00 PM, <astropy-request@scipy.org> wrote:

> Send AstroPy mailing list submissions to
>         astropy@scipy.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mail.scipy.org/mailman/listinfo/astropy
> or, via email, send a message with subject or body 'help' to
>         astropy-request@scipy.org
>
> You can reach the person managing the list at
>         astropy-owner@scipy.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AstroPy digest..."
>
>
> Today's Topics:
>
>    1. how to make density plot and contour via python? (gonghang.naoc)
>    2. Re: how to make density plot and contour via python?
>       (Adrian Price-Whelan)
>    3. Re: how to make density plot and contour via python?
>       (John K. Parejko)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 1 Nov 2012 20:46:08 +0800
> From: "gonghang.naoc" <ghang.naoc@gmail.com>
> Subject: [AstroPy] how to make density plot and contour via python?
> To: astropy@scipy.org
> Message-ID:
>         <CABb23mvDDzCTogD1NRFu8=
> JuSZqpjXijNwSiTBJyw3LUiz490Q@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> hi,anybody knows the details?I have about 1e+7 discrete points. Thanks!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mail.scipy.org/pipermail/astropy/attachments/20121101/27f0d5f9/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Thu, 1 Nov 2012 10:36:58 -0400
> From: Adrian Price-Whelan <adrianmpw@gmail.com>
> Subject: Re: [AstroPy] how to make density plot and contour via
>         python?
> To: gonghang.naoc <ghang.naoc@gmail.com>
> Cc: astropy <astropy@scipy.org>
> Message-ID: <5F383074-C760-4E8A-95C3-C4F0B7D6AAA6@gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Check out this example:
> http://micropore.wordpress.com/2011/10/01/2d-density-plot-or-2d-histogram/
>
> And also this code:
> https://gist.github.com/3993992
>
> - Adrian
>
> On Nov 1, 2012, at 8:46 AM, gonghang.naoc wrote:
>
> > hi,anybody knows the details?I have about 1e+7 discrete points. Thanks!
> > _______________________________________________
> > AstroPy mailing list
> > AstroPy@scipy.org
> > http://mail.scipy.org/mailman/listinfo/astropy
>
> --
> Adrian Price-Whelan
> Department of Astronomy
> Columbia University
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mail.scipy.org/pipermail/astropy/attachments/20121101/cf5cf0d9/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Thu, 1 Nov 2012 11:32:47 -0400
> From: "John K. Parejko" <john.parejko@yale.edu>
> Subject: Re: [AstroPy] how to make density plot and contour via
>         python?
> To: Adrian Price-Whelan <adrianmpw@gmail.com>
> Cc: astropy <astropy@scipy.org>
> Message-ID: <319B974C-F374-4243-B004-56EFDE0A38F5@yale.edu>
> Content-Type: text/plain; charset=us-ascii
>
> I am a big fan of the hexbin matplotlib module.
>
> http://matplotlib.org/examples/pylab_examples/hexbin_demo.html
>
> Setting mincnt=1 gets rid of the "last" contour, and you can change the
> alpha level to overlay histograms on the same plot and have underlying
> layers visible.
>
> John
>
> On 1Nov 2012, at 10:36, Adrian Price-Whelan wrote:
>
> > Check out this example:
> >
> http://micropore.wordpress.com/2011/10/01/2d-density-plot-or-2d-histogram/
> >
> > And also this code:
> > https://gist.github.com/3993992
> >
> > - Adrian
> >
> > On Nov 1, 2012, at 8:46 AM, gonghang.naoc wrote:
> >
> >> hi,anybody knows the details?I have about 1e+7 discrete points. Thanks!
> >> _______________________________________________
> >> AstroPy mailing list
> >> AstroPy@scipy.org
> >> http://mail.scipy.org/mailman/listinfo/astropy
> >
> > --
> > Adrian Price-Whelan
> > Department of Astronomy
> > Columbia University
> >
> >
> >
> > _______________________________________________
> > AstroPy mailing list
> > AstroPy@scipy.org
> > http://mail.scipy.org/mailman/listinfo/astropy
>
> --
> *************************
> John Parejko
> john.parejko@yale.edu
> http://www.astro.yale.edu/~jp727/
> 203 432-9759
> JWG 465
> Department of Physics
> Yale University
> New Haven, CT
> **************************
>
>
>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> AstroPy mailing list
> AstroPy@scipy.org
> http://mail.scipy.org/mailman/listinfo/astropy
>
>
> End of AstroPy Digest, Vol 74, Issue 1
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/astropy/attachments/20121101/c3900c9d/attachment.html 


More information about the AstroPy mailing list