[yt-users] plots with ipython

Nathan Goldbaum nathan12343 at gmail.com
Fri Dec 8 11:10:32 PST 2017


Hi Astrid,

You can turn on interactive matplotlib plotting using the
"yt.toggle_interactivity()" funciton. Note that this is a new, experimental
feature so it's possible there will be issues. This is not turned on by
default because yt is very commonly used over a headless SSH connection to
a cluster where using matplotlib's interactive backends would lead to
errors.

More details about this in the docs:

http://yt-project.org/doc/visualizing/plots.html#viewing-plots

-Nathan

-Nathan

On Thu, Dec 7, 2017 at 7:10 AM, Lamberts, Astrid <lamberts at caltech.edu>
wrote:

> Hi all,
>
>
> I'm trying to have a first look at my simulations and when I follow the
> cookbook for plots, I don't see any plot.
>
>
> I use ipython  with:
>
> import yt
>
> ds=yt.load(mysim)
>
> p=yt.ProjectionPlot(ds,"z","density")
>
>
> and no plot appears, even after a p.show(). p.save() saves the plot to a
> file, but I am looking for a more direct way to look at the data, and I
> would rather not use jupyter notebooks.
>
>
> How can I proceed?
>
>
> Thanks,
>
>
> Astrid
>
>
> Astrid Lamberts
>
> Postdoctoral Researcher
>
> TAPIR Group, Caltech
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171208/5d72f941/attachment-0001.html>


More information about the yt-users mailing list