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
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@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@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Lamberts, Astrid -
Nathan Goldbaum