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@gmail.com> wrote:

> On Feb 3, 2014, at 6:29 PM, Sam Skillman <samskillman@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@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org