[yt-dev] ProfileND: soliciting opinions

Britton Smith brittonsmith at gmail.com
Mon Feb 3 18:14:46 PST 2014


I'm all for minimalism, but being able to easily specify the limits on a
profile/phaseplot is a bread and butter operation.  I'm +1 for making this
doable from the initial ProfilePlot/PhasePlot call.


On Mon, Feb 3, 2014 at 6:40 PM, John ZuHone <jzuhone at gmail.com> wrote:

>
> > On Feb 3, 2014, at 6:29 PM, Sam Skillman <samskillman at gmail.com> wrote:
> >
> > +1 on having .x be the bin centers, and .x_bins being edges.  That said,
> what is the protocol for calculating the center of logarithmically spaced
> bins? Is it
> > .x = (.x_bins[:1] + .x_bins[1:])/2
> > or
> > .x = 10**( (np.log10(.x_bins[:1]) + np.log10(.x_bins[1:]))/2 )
>
> I'm not sure, but your second expression is reducible to:
>
> .x = np.sqrt(.x_bins[:-1]*.x_bins[1:])
>
> And I think you meant that to be ":-1"
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-dev-spacepope.org/attachments/20140203/b15f5614/attachment.htm>


More information about the yt-dev mailing list