<div dir="ltr"><div><div>Dear yt:<br><br></div>I am using volume render to visualizing the gradient in field lines. <br>Is there a way that I can add more sensitivity, in terms of colors to my final image? Currently the gradient seems very limited and cannot differentiate between near and far fields. Drive link is below<br><br></div>Thanks in advance <br><div><div><br><br><a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a><br><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 20, 2016 at 11:44 AM,  <span dir="ltr"><<a href="mailto:yt-users-request@lists.spacepope.org" target="_blank">yt-users-request@lists.spacepope.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send yt-users mailing list submissions to<br>
        <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:yt-users-request@lists.spacepope.org">yt-users-request@lists.<wbr>spacepope.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:yt-users-owner@lists.spacepope.org">yt-users-owner@lists.<wbr>spacepope.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of yt-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Problem using Multiplot_yt (John Wise)<br>
   2. Re: Problem using Multiplot_yt (John Wise)<br>
   3. sliceplots for setting maximum temperature at the center<br>
      (turhan nasri)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Sun, 20 Nov 2016 08:34:09 -0500<br>
From: John Wise <<a href="mailto:jwise@physics.gatech.edu">jwise@physics.gatech.edu</a>><br>
To: <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] Problem using Multiplot_yt<br>
Message-ID: <<a href="mailto:15643110-1f4b-460c-c80e-2e85b0fdb18d@physics.gatech.edu">15643110-1f4b-460c-c80e-<wbr>2e85b0fdb18d@physics.gatech.<wbr>edu</a>><br>
Content-Type: text/plain; charset="windows-1252"; format=flowed<br>
<br>
Hi Rahul,<br>
<br>
I can confirm that this is a bug with multiplot_yt.  I'll get back to<br>
the list once I find a fix.  In the meantime, can you create an issue on<br>
bitbucket?<br>
<br>
Thanks,<br>
John<br>
<br>
On 11/20/2016 12:51 AM, rahul kashyap wrote:<br>
> Some attempts which didn't work. The callback is pasted on<br>
> <a href="http://paste.yt-project.org/show/6931/" rel="noreferrer" target="_blank">http://paste.yt-project.org/<wbr>show/6931/</a><br>
><br>
> I tried putting fields in the call<br>
><br>
> eps_fig = eps.multiplot_yt(2, 2, s,["density","temperature",<br>
> "velocity_magnitude","<wbr>pressure"], bare_axes=True)<br>
><br>
> I also tried putting a break point in the yt/visualization/eps_writer.py<br>
><br>
> figure = multiplot(ncol, nrow, yt_plots=plots, fields=fields, **kwargs)<br>
><br>
><br>
><br>
><br>
> On Sun, Nov 20, 2016 at 12:35 AM, rahul kashyap<br>
> <<a href="mailto:rahulkashyap411@gmail.com">rahulkashyap411@gmail.com</a> <mailto:<a href="mailto:rahulkashyap411@gmail.com">rahulkashyap411@gmail.<wbr>com</a>>> wrote:<br>
><br>
>     Hi,<br>
><br>
>     After doing<br>
><br>
>     import yt.visualization.eps_writer as eps<br>
>     from yt.visualization.eps_writer import multiplot_yt<br>
>     s = yt.SlicePlot(ds, "z", ["density","temperature",<br>
>     "velocity_magnitude","<wbr>pressure"], center="max")<br>
><br>
>     This works for me<br>
><br>
>     eps_fig = eps.single_plot(s)<br>
>     eps_fig.save_fig('zoom', format='eps')<br>
>     eps_fig.save_fig('zoom-pdf', format='pdf')<br>
><br>
>     *But, the code below doesn't work for me; error is "YTFieldNotFound:<br>
>     Could not find field '('io', 0)' in super3d_hdf5_plt_cnt_0000."*<br>
><br>
>     s.set_width(2.e9, 'cm')<br>
>     eps_fig = eps.multiplot_yt(2, 2, s, bare_axes=True)     #not working now<br>
>     #eps_fig.scale_line(0.2, '5 kpc')<br>
>     eps_fig.save_fig('multi', format='eps')<br>
><br>
>     Any help would be appreciated, Thanks<br>
>     -Rahul Kashyap<br>
><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
><br>
<br>
--<br>
John Wise<br>
Associate Professor of Physics<br>
Center for Relativistic Astrophysics, Georgia Tech<br>
<a href="http://cosmo.gatech.edu" rel="noreferrer" target="_blank">http://cosmo.gatech.edu</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 20 Nov 2016 08:55:12 -0500<br>
From: John Wise <<a href="mailto:jwise@physics.gatech.edu">jwise@physics.gatech.edu</a>><br>
To: <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] Problem using Multiplot_yt<br>
Message-ID: <<a href="mailto:b7bf57b5-3aaa-d243-f77c-8ba56b519d68@physics.gatech.edu">b7bf57b5-3aaa-d243-f77c-<wbr>8ba56b519d68@physics.gatech.<wbr>edu</a>><br>
Content-Type: text/plain; charset="windows-1252"; format=flowed<br>
<br>
Hi again,<br>
<br>
The fix was easier than I thought.  Can you test it out?  If you<br>
installed yt with "INST_YT_SOURCE=1" in the install script, then you can<br>
issue the following commands in the yt source directory<br>
<br>
hg pull -u -r 9373defa8ed5 <a href="https://bitbucket.org/jwise77/yt" rel="noreferrer" target="_blank">https://bitbucket.org/jwise77/<wbr>yt</a><br>
python setup.py develop<br>
<br>
and see if your script now works.  It works for me with a similar script<br>
as you posted.<br>
<br>
If you're using the conda installation, then you can follow the<br>
instructions in this previous email.<br>
<br>
<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2016-October/008277.html" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>pipermail/yt-users-spacepope.<wbr>org/2016-October/008277.html</a><br>
<br>
Let us know what you find.<br>
Thanks,<br>
John<br>
<br>
<br>
On 11/20/2016 08:34 AM, John Wise wrote:<br>
> Hi Rahul,<br>
><br>
> I can confirm that this is a bug with multiplot_yt.  I'll get back to<br>
> the list once I find a fix.  In the meantime, can you create an issue on<br>
> bitbucket?<br>
><br>
> Thanks,<br>
> John<br>
><br>
> On 11/20/2016 12:51 AM, rahul kashyap wrote:<br>
>> Some attempts which didn't work. The callback is pasted on<br>
>> <a href="http://paste.yt-project.org/show/6931/" rel="noreferrer" target="_blank">http://paste.yt-project.org/<wbr>show/6931/</a><br>
>><br>
>> I tried putting fields in the call<br>
>><br>
>> eps_fig = eps.multiplot_yt(2, 2, s,["density","temperature",<br>
>> "velocity_magnitude","<wbr>pressure"], bare_axes=True)<br>
>><br>
>> I also tried putting a break point in the yt/visualization/eps_writer.py<br>
>><br>
>> figure = multiplot(ncol, nrow, yt_plots=plots, fields=fields, **kwargs)<br>
>><br>
>><br>
>><br>
>><br>
>> On Sun, Nov 20, 2016 at 12:35 AM, rahul kashyap<br>
>> <<a href="mailto:rahulkashyap411@gmail.com">rahulkashyap411@gmail.com</a> <mailto:<a href="mailto:rahulkashyap411@gmail.com">rahulkashyap411@gmail.<wbr>com</a>>> wrote:<br>
>><br>
>>     Hi,<br>
>><br>
>>     After doing<br>
>><br>
>>     import yt.visualization.eps_writer as eps<br>
>>     from yt.visualization.eps_writer import multiplot_yt<br>
>>     s = yt.SlicePlot(ds, "z", ["density","temperature",<br>
>>     "velocity_magnitude","<wbr>pressure"], center="max")<br>
>><br>
>>     This works for me<br>
>><br>
>>     eps_fig = eps.single_plot(s)<br>
>>     eps_fig.save_fig('zoom', format='eps')<br>
>>     eps_fig.save_fig('zoom-pdf', format='pdf')<br>
>><br>
>>     *But, the code below doesn't work for me; error is "YTFieldNotFound:<br>
>>     Could not find field '('io', 0)' in super3d_hdf5_plt_cnt_0000."*<br>
>><br>
>>     s.set_width(2.e9, 'cm')<br>
>>     eps_fig = eps.multiplot_yt(2, 2, s, bare_axes=True)     #not<br>
>> working now<br>
>>     #eps_fig.scale_line(0.2, '5 kpc')<br>
>>     eps_fig.save_fig('multi', format='eps')<br>
>><br>
>>     Any help would be appreciated, Thanks<br>
>>     -Rahul Kashyap<br>
>><br>
>><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
>><br>
><br>
<br>
--<br>
John Wise<br>
Associate Professor of Physics<br>
Center for Relativistic Astrophysics, Georgia Tech<br>
<a href="http://cosmo.gatech.edu" rel="noreferrer" target="_blank">http://cosmo.gatech.edu</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 19 Nov 2016 20:33:01 -0500<br>
From: turhan nasri <<a href="mailto:turhannasri@gmail.com">turhannasri@gmail.com</a>><br>
To: <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
Subject: [yt-users] sliceplots for setting maximum temperature at the<br>
        center<br>
Message-ID:<br>
        <<a href="mailto:CANPWr5iqWXTAk9i5drdSRTVD4D6s9i5%2Bo0oZCUhq-UZNwZ2QUA@mail.gmail.com">CANPWr5iqWXTAk9i5drdSRTVD4D6s<wbr>9i5+o0oZCUhq-UZNwZ2QUA@mail.<wbr>gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi people,<br>
<br>
I wanted to to get slices for temperature and temperature gradient<br>
magnitude setting the maximum temperature at the center. I used yt's<br>
feature:<br>
<br>
v,c = pf.h.find_max('temperature') #set center at max_temp<br>
<br>
and got the slices, however, my slice outputs clearly show the maximum<br>
temperature was not set at center. I am sharing the python code for the<br>
slices and also my output files.<br>
this code worked when I created density slices and max_dens was set at<br>
center, I don't see it isn't working out for temperature. Thanks for your<br>
help<br>
<br>
Turhan<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161119/9e9c84a2/attachment.htm" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>pipermail/yt-users-spacepope.<wbr>org/attachments/20161119/<wbr>9e9c84a2/attachment.htm</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: super3d_hdf5_chk_0047_3slice_<wbr>temperature.png<br>
Type: image/png<br>
Size: 89139 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161119/9e9c84a2/attachment.png" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>pipermail/yt-users-spacepope.<wbr>org/attachments/20161119/<wbr>9e9c84a2/attachment.png</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: super3d_hdf5_chk_0047_3slice_<wbr>temperature_gradient_magnitude (7).png<br>
Type: image/png<br>
Size: 107028 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161119/9e9c84a2/attachment-0001.png" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>pipermail/yt-users-spacepope.<wbr>org/attachments/20161119/<wbr>9e9c84a2/attachment-0001.png</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: slice.py<br>
Type: text/x-python<br>
Size: 3813 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161119/9e9c84a2/attachment.py" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>pipermail/yt-users-spacepope.<wbr>org/attachments/20161119/<wbr>9e9c84a2/attachment.py</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of yt-users Digest, Vol 105, Issue 28<br>
******************************<wbr>***********<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><span style="border-collapse:collapse"><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><i>SK<sup>2</sup></i></b></span></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><i><sup><br></sup></i></b></span></div><div><span style="color:rgb(80,0,80);font-family:arial,sans-serif;border-collapse:collapse"><b><sup>"</sup></b></span><font color="#500050" face="arial, sans-serif"><b>Claiming that something can move faster than light is a good conversation-stopper in physics. People edge away from you in cocktail parties; friends never return phone calls. You just don’t mess with Albert Einstein.</b></font><b style="color:rgb(80,0,80);font-family:arial,sans-serif"><sup>"</sup></b></div><div style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br></div></span></div>
</div></div></div></div></div>