<div dir="ltr"><div>Hi all,</div><div><br></div>I just want to address the PlotCollection question on colorbar for phase diagrams, since I've ran into the same problem a while back. Chris' method of "<span style="font-family:arial,sans-serif;font-size:13px">myprojection.set_label("H_</span><span style="font-family:arial,sans-serif;font-size:13px">NumberDensity")</span>" didn't work for me at least in phase plots.<div>
<br></div><div>"<span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:13px">I still need to use PlotCollection for phase plots (Is there equivalent things for phase plots?),</span><div style="font-size:13px;font-family:Helvetica,Arial;color:rgb(0,0,0);margin:0px">
and the problem persists. For example, ‘H_NumberDensity’ shows ’N’ as a subscript."</div><div style="font-size:13px;font-family:Helvetica,Arial;color:rgb(0,0,0);margin:0px"><div style="margin:0px"><br></div><div style="margin:0px">
<a href="http://paste.yt-project.org/show/4043/">http://paste.yt-project.org/show/4043/</a></div><div><br></div></div><div style="font-size:13px;font-family:Helvetica,Arial;color:rgb(0,0,0);margin:0px">- In the script under method 2, what I've done is use yt for the gathering of data (very quick with lazy_reader=True with multiple processors even on big datasets) and use matplotlib to do custom labels. This is more flexible in terms of the customizations you want to do, but it's also a lot of trial and error and digging through matplotlib's burdensome documentation.</div>
<div><br></div></div><div>Hope that solves your trouble <span style="font-family:arial,sans-serif;font-size:13px">Semyeong</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>Questions I have:</div>
<div><br></div><div>- will the new function that replaces PlotCollection's phase plot functionality going to use BinnedProfile2,3D in yt-3.0? Or will I have to rewrite scripts that uses it currently?</div><div><br></div>
<div>- Since the phase plot bins the data in equal spaced bins in log space when it is specified, shouldn't the pixels when plotted in log scale be also different size? Or better yet, shouldn't the x, y axis be labeled as Log x: 0 1, 2, 3 instead of x: 10^0, 10^1, 10^2, 10^3?</div>
<div><br></div><div>From</div><div>G.S.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 8, 2013 at 9:57 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@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 Fri, Nov 8, 2013 at 12:53 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:<br>
> Hi Andrew,<br>
><br>
> The most straightforward way to do this is to use a data_source:<br>
><br>
> region = pf.h.region(center=[0.5, 0.5, 0.5], left_edge=[0, 0, 0.4,<br>
> right_edge=[1., 1., 0.6])<br>
> plot = ProjectionPlot(pf, 2, 'Density', data_source=region)<br>
><br>
> This will select data using the region data container supplied on the first<br>
> line.<br>
><br>
> It would probably be possible to add a `depth` keyword argument to<br>
> ProjectionPlot that constructs such a region in the ProjectionPlot<br>
> initializer. Pull requests are more than welcome :)<br>
<br>
</div>We have a lot of arguments to that class already. I think if we add<br>
any more, it might collapse under the weight of its own docstring. :)<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> -Nathan<br>
><br>
><br>
> On Fri, Nov 8, 2013 at 9:16 AM, Andrew James Emerick <<a href="mailto:aje2123@columbia.edu">aje2123@columbia.edu</a>><br>
> wrote:<br>
>><br>
>> To tack onto this conversation, it seemed to be the case that I could only<br>
>> generate thin projections via plot collections. Is there a replacement for<br>
>> this in th works?<br>
>><br>
>><br>
>><br>
>> Andrew E<br>
>><br>
>><br>
>> On Friday, November 8, 2013, Semyeong Oh wrote:<br>
>>><br>
>>> Hi Britton,<br>
>>><br>
>>> I see. But it seems like I still need to use PlotCollection for phase<br>
>>> plots (Is there equivalent things for phase plots?),<br>
>>> and the problem persists. For example, ‘H_NumberDensity’ shows ’N’ as a<br>
>>> subscript.<br>
>>><br>
>>> My instinfo is 6f28a1477055 in case it helps.<br>
>>><br>
>>> Semyeong<br>
>>><br>
>>> ________________________________<br>
>>> From: Britton Smith Britton Smith<br>
>>> Reply: Discussion of the yt analysis package <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>>> Date: November 8, 2013 at 2:52:44 AM<br>
>>> To: Discussion of the yt analysis package <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>>> Subject: Re: [yt-users] plot collection labels etc<br>
>>><br>
>>> Hi Semyeong,<br>
>>><br>
>>> The PlotCollection is in the process of being phased out. For Slices and<br>
>>> Projections, it has been completely replaced by the functions SlicePlot and<br>
>>> ProjectionPlot. I suggest you have a look here:<br>
>>> <a href="http://yt-project.org/docs/dev/visualizing/plots.html" target="_blank">http://yt-project.org/docs/dev/visualizing/plots.html</a><br>
>>><br>
>>> Britton<br>
>>><br>
>>><br>
>>> On Fri, Nov 8, 2013 at 6:32 AM, Semyeong Oh <<a href="mailto:semyeong.oh@gmail.com">semyeong.oh@gmail.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> Hi, I have a couple of questions on PlotCollection<br>
>>>><br>
>>>> First, the labels on plot collection appear funny like this<br>
>>>><br>
>>>> Here’s the code:<br>
>>>> pc = PlotCollectionInteractive(pf)<br>
>>>><br>
>>>> pc.add_projection('H_NumberDensity', 2, data_source=reg, center=center)<br>
>>>> pc.set_width(width, 'unitary’)<br>
>>>><br>
>>>> There seem to be a couple of mailing list discussions, but is it<br>
>>>> something that<br>
>>>> wasn’t fixed for PlotCollectionInteractive?<br>
>>>><br>
>>>> Also, if I am making multiple plots using the same data_source,<br>
>>>> it seems that I have to do set_width every time I add a new plot.<br>
>>>> I’m wondering<br>
>>>><br>
>>>> 1. if there is some way to set global width of a PlotCollection?<br>
>>>> 2. when is the fixed resolution buffer actually made? Is it when I<br>
>>>> save/show the plots?<br>
>>>><br>
>>>> Thanks for your help.<br>
>>>> Semyeong<br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> yt-users mailing list<br>
>>>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>>>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>>><br>
>>><br>
>>> _______________________________________________<br>
>>> yt-users mailing list<br>
>>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>><br>
>>><br>
>>><br>
>><br>
>><br>
>> --<br>
>> Graduate Student<br>
>> Columbia University<br>
>> Department of Astronomy<br>
>><br>
>><br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br></div>