<div dir="ltr">+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 <div>.x = (.x_bins[:1] + .x_bins[1:])/2 </div><div>

or </div><div>.x = 10**( (np.log10(.x_bins[:1]) + np.log10(.x_bins[1:]))/2 ) </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 3:05 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Feb 3, 2014 at 2:57 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>


><br>
> On Feb 3, 2014 5:45 PM, "Nathan Goldbaum" <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:<br>
>><br>
>> +1.<br>
>><br>
>> While we're talking about profiles, it would be nice if I could<br>
>> specify the bin limits in the create_profile function - right now they<br>
>> are hard coded to come from the Extrema derived quantity.  This would<br>
>> make it a bit more straightforward to make a ProfilePlot or PhasePlot<br>
>> with custom axes limits.<br>
>><br>
><br>
> I think the idea of create profiles was to stay super minimalist, and<br>
> encourage using the actual objects for more complex operations. I'm not sure<br>
> I want to bolt more arguments on rather than making ProfileND easier.<br>
><br>
<br>
</div>Agreed, to a point.  The issue is that it's not straightforward to<br>
create a custom PhasePlot or ProfilePlot.  The docstrings mention<br>
being able to construct a custom profile with create_profile, but<br>
create_profile doesn't really offer much customization.<br>
<br>
ProfileND offers plenty of customization, but there are no docstrings<br>
in ProfileND or any subclasses so it's not exactly a user-friendly<br>
operation right now.  ProfileND is also not in the yt.mods namespace.<br>
<br>
Adding docstrings to ProfileND and adding it to yt.mods would satisfy<br>
my concerns, I think.<br>
<div class="im"><br>
> Specifying bin edges manually could be neat, though, especially for<br>
> non-uniform bins...<br>
><br>
>> It would also be nice if ProfileND returned YTArrays, that's something<br>
>> I was planning to add soonish, but if you guys handle it that would be<br>
>> great.<br>
><br>
> Optimistically, no more than 36 hours for that. :) I also hope to have a<br>
> wrapper for a array_like_field type thing too, to make it easier to copy and<br>
> duplicate units. Thoughts on that?<br>
<br>
</div>Not totally sure what you mean, can you expand with a little bit more detail?<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Matt<br>
><br>
>><br>
>> -Nathan<br>
>><br>
>> On Mon, Feb 3, 2014 at 1:53 PM, John ZuHone <<a href="mailto:jzuhone@gmail.com">jzuhone@gmail.com</a>> wrote:<br>
>> >> I am +1 on this provided that prof.x_bins, etc. remains with the values<br>
>> >> of the fields at bin edges.<br>
>> ><br>
>> ><br>
>> > Yes, that would remain the same.<br>
>> > _______________________________________________<br>
>> > yt-dev mailing list<br>
>> > <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
>> > <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
>> _______________________________________________<br>
>> yt-dev mailing list<br>
>> <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
><br>
><br>
> _______________________________________________<br>
> yt-dev mailing list<br>
> <a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</div></div></blockquote></div><br></div>