<div dir="ltr">You should, that was awesome!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 2:48 PM, 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">I made it just now.<br>
<br>
There may be a way to search notebooks on the yt hub - Matt would know<br>
more about that.<br>
<br>
We have a few notebooks in our documentation<br>
(<a href="http://yt-project.org/docs/dev/cookbook/index.html#example-notebooks" target="_blank">http://yt-project.org/docs/dev/cookbook/index.html#example-notebooks</a>),<br>
but we could always use more!  I might add this as an example...<br>
<span class="HOEnZb"><font color="#888888"><br>
-Nathan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Wed, Feb 19, 2014 at 11:46 AM, Stephanie Tonnesen <<a href="mailto:stonnes@gmail.com">stonnes@gmail.com</a>> wrote:<br>
> Super helpful, thanks!  I knew that it had to be something like that, but<br>
> after a few random tries I figured I better just ask.  How did you find that<br>
> notebook?  Did you make it just now?  Is there a way I can search notebooks?<br>
><br>
> -Stephanie<br>
><br>
><br>
> On Wed, Feb 19, 2014 at 2:43 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi Stephanie,<br>
>><br>
>> PhasePlot contains a matplotlib figure. Take a look at this notebook<br>
>> for an example:<br>
>><br>
>><br>
>> <a href="http://nbviewer.ipython.org/url/hub.yt-project.org/notebooks/0759b334549f44e991a0cf6158c7225d.ipynb" target="_blank">http://nbviewer.ipython.org/url/hub.yt-project.org/notebooks/0759b334549f44e991a0cf6158c7225d.ipynb</a><br>

>><br>
>> Hope that's helpful,<br>
>><br>
>> Nathan<br>
>><br>
>> On Wed, Feb 19, 2014 at 11:30 AM, Stephanie Tonnesen <<a href="mailto:stonnes@gmail.com">stonnes@gmail.com</a>><br>
>> wrote:<br>
>> > Hi users,<br>
>> ><br>
>> > I am still fiddling with PhasePlot, and would now like to be able to<br>
>> > have<br>
>> > some text inside the window.  I am *not* looking for a legend box or<br>
>> > anything, just text.  If I were writing this on a plot in python I would<br>
>> > just be looking to use p.text(x,y,'text').  I will paste the section of<br>
>> > code<br>
>> > writing the PhasePlot below.<br>
>> ><br>
>> > Thanks!<br>
>> ><br>
>> > Stephanie<br>
>> ><br>
>> > profile = Profile2D(tracerp25, x_field='zkpc', x_n=36, x_min=-6.,<br>
>> ><br>
>> > x_max=0.,x_log=False,y_field='BMagnitude',y_n=40,y_min=1e-8,y_max=1e-4,y_log=True,weight_field=None)<br>
>> > profile.add_fields(['CellMassMsun'])<br>
>> > plot =<br>
>> ><br>
>> > PhasePlot(tracerp25,"zkpc","BMagnitude",["CellMassMsun"],profile=profile,fontsize=21)<br>
>> > plot.set_log("totPressure",True)<br>
>> > plot.set_log("z-velocity",False)<br>
>> > plot.set_log("zvelocity8",False)<br>
>> > plot.set_zlim("CellMassMsun",9e3,1e8)<br>
>> > plot.set_figure_size(4.5)<br>
>> > plot.set_cmap(field="CellMassMsun",cmap='Eos B')<br>
>> ><br>
>> > plot.plots['CellMassMsun'].hide_colorbar()<br>
>> > ax = plot.plots['CellMassMsun'].axes<br>
>> > ax.set_ylabel(r'|B| (Gauss)',fontsize=18)<br>
>> > #ax.set_xlabel('z dist from disk plane (kpc)',fontsize=27)<br>
>> > #ax.set_ylabel(r' ',fontsize=27)<br>
>> > #ax.set_xlabel('dist below disk plane (kpc)',fontsize=18)<br>
>> > ax.set_xlabel(r' ',fontsize=18)<br>
>> ><br>
>> > for label in ax.xaxis.get_ticklabels():<br>
>> >     label.set_rotation(35)<br>
>> >     label.set_fontsize(18)<br>
>> >     label.set_visible(False)<br>
>> > for label in ax.yaxis.get_ticklabels():<br>
>> >     label.set_fontsize(18)<br>
>> > #    label.set_visible(False)<br>
>> ><br>
>> > ax.xaxis.set_ticks([-6,-5,-4,-3,-2,-1,0])<br>
>> > plot.save()<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>
><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>