<div dir="ltr">Hi Mateusz,<div><br></div><div>Below is a reasonably simple way that someone might do something like this.  This makes use of some newer functionality that currently only exists in the development branch, so you would have to update to that to use it.  This results in the following plot:</div><div><a href="http://i.imgur.com/Qlgg6sV.png">http://i.imgur.com/Qlgg6sV.png</a></div><div><br></div><div>To do this, I first made some profiles over a time-series of datasets with the following script:</div><div><a href="http://paste.yt-project.org/show/6278/">http://paste.yt-project.org/show/6278/</a><br></div><div><br></div><div>The last line is the new functionality, which saves all of the compiled profile data in a way that it can be reloaded as a yt dataset.  You can see more information about that here:</div><div><a href="http://yt-project.org/docs/dev/analyzing/saving_data.html">http://yt-project.org/docs/dev/analyzing/saving_data.html</a><br></div><div><br></div><div>Now, yt is awfully close to being able to plot this itself, but not quite there yet, so I plotted this using matplotlib.  The plotting script is here:</div><div><a href="http://paste.yt-project.org/show/6279/">http://paste.yt-project.org/show/6279/</a><br></div><div><br></div><div>At the top of that script, you can see how I get access to the data that was saved by the first script.  All that needs to be done is to call yt.load with the file that was created and the data fields are all accessible with full unit support through ds.data.  So, for example, ds.data["density"].</div><div><br></div><div>I hope this is helpful.</div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 27, 2016 at 2:44 AM, 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 dir="ltr">While I think this is a really cool idea, I don't think this is possible within yt right now. Britton Smith might know a trick to do this though...</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 26, 2016 at 3:59 PM, Mateusz Ruszkowski <span dir="ltr"><<a href="mailto:mateuszr@umich.edu" target="_blank">mateuszr@umich.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
   Hi,<br>
<br>
Is there a simple way in yt to generate a "phase plot" of the gas density, with time and radius on the axes, using a time series of data files?<br>
<br>
   Thanks,<br>
      Mateusz<br>
<br>
<br>
<br>
<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>
</blockquote></div><br></div>
</div></div><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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>