<div>Try to use plot.set_axes_unit("unitary").<br><div class="gmail_quote"><div>On Fri, Jun 9, 2017 at 9:08 AM Sushilkumar <<a href="mailto:sushil.sush19us@gmail.com">sushil.sush19us@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>Dear yt <br><br></div>How do I label the axis of a plot in normalized values? <br><br>On my plot I want to label my x and y axis in terms of the vertical line. <br><br></div><div>Do I use convert_to_plot under streamlines?<br></div><div><br></div>Link to the plot and script is below<br><div><div><br><a href="https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc" target="_blank">https://drive.google.com/open?id=0B4g8shg4DL7oak5PLWVVdG5UMHc</a><br><br></div><div>Thanks in advance<br><br><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 8, 2017 at 1:01 PM,  <span><<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" target="_blank">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/listinfo.cgi/yt-users-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" target="_blank">yt-users-request@lists.spacepope.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:yt-users-owner@lists.spacepope.org" target="_blank">yt-users-owner@lists.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: selecting data by refinement level (Klaus Weide)<br>
   2. Re: selecting data by refinement level (Matthew Turk)<br>
   3. Re: selecting data by refinement level (Nathan Goldbaum)<br>
   4. Re: selecting data by refinement level (Klaus Weide)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 7 Jun 2017 13:53:49 -0500 (CDT)<br>
From: Klaus Weide <<a href="mailto:klaus@flash.uchicago.edu" target="_blank">klaus@flash.uchicago.edu</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] selecting data by refinement level<br>
Message-ID: <<a href="mailto:Pine.LNX.4.64.1706071350010.1322@flash.uchicago.edu" target="_blank">Pine.LNX.4.64.1706071350010.1322@flash.uchicago.edu</a>><br>
Content-Type: TEXT/PLAIN; charset=US-ASCII<br>
<br>
On Wed, 7 Jun 2017, Matthew Turk wrote:<br>
<br>
> Hi Klaus,<br>
><br>
> Whoops, I said "grid_collection" but I meant "data_collection".<br>
<br>
Thanks Matt. I have not tried the 'collection of grids' approach yet, but<br>
the following does what I want:<br>
<br>
        ds = yt.load(dump_path)<br>
<br>
        ad = ds.all_data()<br>
        if fine_only:<br>
            maxreflevel = ad.index.grid_levels.max()<br>
            print '*** Filtering data so that only FLASH refinement level {} cells are used'.format(maxreflevel+1)<br>
            ad.min_level = maxreflevel<br>
            ad.max_level = maxreflevel<br>
            print 'These cover a volume of %s' % ad['cell_volume'].sum()<br>
        # .....<br>
        data = {}<br>
        data['dens'] = ad['dens'].to_ndarray()<br>
        # .....<br>
<br>
<br>
Klaus<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 7 Jun 2017 13:56:51 -0500<br>
From: Matthew Turk <<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] selecting data by refinement level<br>
Message-ID:<br>
        <CALO3=5HbBWfPj8hf5KEwMq1CiU932Q_u+=<a href="mailto:hHcBzYirQzGYCm3A@mail.gmail.com" target="_blank">hHcBzYirQzGYCm3A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
Great!  As a quick note, you can use `.d` as shorthand for<br>
`to_ndarray()`.  The YTArray it returns is a subclass of ndarray, so<br>
should in general be usable in both ways; as you probably figured out,<br>
if you do any manipulation of individual elements it adds overhead and<br>
(often frustrating, but hopefully ultimately helpful), restrictions on<br>
combining incorrect units unless you look at it as a strict ndarray.<br>
<br>
On Wed, Jun 7, 2017 at 1:53 PM, Klaus Weide <<a href="mailto:klaus@flash.uchicago.edu" target="_blank">klaus@flash.uchicago.edu</a>> wrote:<br>
> On Wed, 7 Jun 2017, Matthew Turk wrote:<br>
><br>
>> Hi Klaus,<br>
>><br>
>> Whoops, I said "grid_collection" but I meant "data_collection".<br>
><br>
> Thanks Matt. I have not tried the 'collection of grids' approach yet, but<br>
> the following does what I want:<br>
><br>
>         ds = yt.load(dump_path)<br>
><br>
>         ad = ds.all_data()<br>
>         if fine_only:<br>
>             maxreflevel = ad.index.grid_levels.max()<br>
>             print '*** Filtering data so that only FLASH refinement level {} cells are used'.format(maxreflevel+1)<br>
>             ad.min_level = maxreflevel<br>
>             ad.max_level = maxreflevel<br>
>             print 'These cover a volume of %s' % ad['cell_volume'].sum()<br>
>         # .....<br>
>         data = {}<br>
>         data['dens'] = ad['dens'].to_ndarray()<br>
>         # .....<br>
><br>
><br>
> Klaus<br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 7 Jun 2017 12:00:44 -0700<br>
From: Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] selecting data by refinement level<br>
Message-ID:<br>
        <CAJXewO=<a href="mailto:gk4Fqrh_fKxmgKVu9vgu53TVQd0P0-Ra5wBBSPm-_Gg@mail.gmail.com" target="_blank">gk4Fqrh_fKxmgKVu9vgu53TVQd0P0-Ra5wBBSPm-_Gg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
On Wed, Jun 7, 2017 at 11:56 AM, Matthew Turk <<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>> wrote:<br>
<br>
> Great!  As a quick note, you can use `.d` as shorthand for<br>
> `to_ndarray()`.  The YTArray it returns is a subclass of ndarray, so<br>
> should in general be usable in both ways; as you probably figured out,<br>
> if you do any manipulation of individual elements it adds overhead and<br>
> (often frustrating, but hopefully ultimately helpful), restrictions on<br>
> combining incorrect units unless you look at it as a strict ndarray.<br>
><br>
<br>
One tiny note:<br>
<br>
YTArray.d is short for YTArray.ndarray_view(), which returns a view onto<br>
the array. This doesn't copy the underlying data.<br>
<br>
YTArray.to_ndarray() is equivalend to YTArray.value or YTArray.v, whcih<br>
returns an ndarray containing a copy of the underlying array data. Getting<br>
a copy sometimes adds overhead.<br>
<br>
Choosing whether or now you want a copy comes down to what exactly you are<br>
doing, since copying adds overhead, but it also prevents silently<br>
overwriting data in an unexpected, nonlocal fashion.<br>
<br>
<br>
><br>
> On Wed, Jun 7, 2017 at 1:53 PM, Klaus Weide <<a href="mailto:klaus@flash.uchicago.edu" target="_blank">klaus@flash.uchicago.edu</a>><br>
> wrote:<br>
> > On Wed, 7 Jun 2017, Matthew Turk wrote:<br>
> ><br>
> >> Hi Klaus,<br>
> >><br>
> >> Whoops, I said "grid_collection" but I meant "data_collection".<br>
> ><br>
> > Thanks Matt. I have not tried the 'collection of grids' approach yet, but<br>
> > the following does what I want:<br>
> ><br>
> >         ds = yt.load(dump_path)<br>
> ><br>
> >         ad = ds.all_data()<br>
> >         if fine_only:<br>
> >             maxreflevel = ad.index.grid_levels.max()<br>
> >             print '*** Filtering data so that only FLASH refinement<br>
> level {} cells are used'.format(maxreflevel+1)<br>
> >             ad.min_level = maxreflevel<br>
> >             ad.max_level = maxreflevel<br>
> >             print 'These cover a volume of %s' % ad['cell_volume'].sum()<br>
> >         # .....<br>
> >         data = {}<br>
> >         data['dens'] = ad['dens'].to_ndarray()<br>
> >         # .....<br>
> ><br>
> ><br>
> > Klaus<br>
> > _______________________________________________<br>
> > yt-users mailing list<br>
> > <a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170607/6450bc9f/attachment.html" rel="noreferrer" target="_blank">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170607/6450bc9f/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Wed, 7 Jun 2017 14:45:52 -0500 (CDT)<br>
From: Klaus Weide <<a href="mailto:klaus@flash.uchicago.edu" target="_blank">klaus@flash.uchicago.edu</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] selecting data by refinement level<br>
Message-ID: <<a href="mailto:Pine.LNX.4.64.1706071443510.1322@flash.uchicago.edu" target="_blank">Pine.LNX.4.64.1706071443510.1322@flash.uchicago.edu</a>><br>
Content-Type: TEXT/PLAIN; charset=US-ASCII<br>
<br>
On Wed, 7 Jun 2017, Nathan Goldbaum wrote:<br>
> On Wed, Jun 7, 2017 at 11:56 AM, Matthew Turk <<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>> wrote:<br>
><br>
> > Great!  As a quick note, you can use `.d` as shorthand for<br>
> > `to_ndarray()`.<br>
<br>
> One tiny note:<br>
><br>
> YTArray.d is short for YTArray.ndarray_view(), which returns a view onto<br>
> the array. This doesn't copy the underlying data.<br>
<br>
Matt and Nathan,<br>
<br>
Thanks for the additional info, I think it's very useful to know.<br>
<br>
Klaus<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
<br>
------------------------------<br>
<br>
End of yt-users Digest, Vol 112, Issue 5<br>
****************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="m_5759024485199806216m_-4970794371261810234gmail_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>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div></div>