<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 19, 2016 at 5:02 PM, Stephanie Tonnesen <span dir="ltr"><<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</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"><div dir="ltr"><div><div><div><div><div>Hi all,<br><br></div>I am currently making some PhasePlots to describe cosmological data.  I want to look at the HI Density, but I really only want to look at the distribution in baryon_overdensity-Temperature space that contains a decent number of cells.  I can make a PhasePlot of "ones" so I can see where the more populated regions are, but I would like to be able to use that in my other PhasePlots.  <br><br></div>I can think of two ways to do this--overplot contours based on the PhasePlot data at some value (say, 300 cells).  Alternatively, I could only include data that has 300 or more cells in the PhasePlot.  <br></div></div></div></div></blockquote><div><br></div><div>I don't think it's possible to do this with PhasePlot directly right now. I think it would be possible to add it, but someone would need to think about a good API first.</div><div><br></div><div>That said, it's possible to do this by manually plotting the profile objects using matplotlib:</div><div><br></div><div><a href="http://nbviewer.jupyter.org/urls/girder.hub.yt/api/v1/item/57bb1cddf5def50001428d71/download?contentDisposition=inline">http://nbviewer.jupyter.org/urls/girder.hub.yt/api/v1/item/57bb1cddf5def50001428d71/download?contentDisposition=inline</a><br></div><div><br></div><div>I could have also done this example without creating the two PhasePlot objects and instead just creating the profile object directly using the create_profile function.</div><div><br></div><div>I set this up on the yt hub, along with the test dataset it uses:</div><div><br></div><div><a href="https://girder.hub.yt/#user/576191a73b2e4d000170118f/folder/576191a73b2e4d0001701190">https://girder.hub.yt/#user/576191a73b2e4d000170118f/folder/576191a73b2e4d0001701190</a><br></div><div><br></div><div>-Nathan</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><br></div>Is there a way to do either of these?<br><br></div>As always, thanks!<br></div><div>Stephanie<br><br></div><div><div><div><div><div><div><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
</div></div></div></div></div></div></div>
<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></blockquote></div><br></div></div>