[yt-users] How do I preview a plot?
(Jan) Christoph Bischko
christoph.bischko at gmail.com
Mon Mar 6 08:08:03 PST 2017
Hi all,
This is a newbie-question concerning plots, so feel free to ignore it.
I'm doing something like
> ds = yt.load( fname, unit_base=unit_base, bounding_box=bbox )
> px = yt.ProjectionPlot( ds, 'y', ('gas', 'density') )
> px.save()
Which saves the plot that I want to a file.
How can preview the same plot in a window?
Basically I'm looking for a yt equivalent to `matplotlib.pyplot.show()`
instead `px.save()`, which corresponds more to a `plt.savefig()` in
matplotlib.
I'm aware that `px.show()` would work in jupyter/ipython notebook.
Unfortunately outside it throws
> yt.utilities.exceptions.YTNotInsideNotebook: This function only works
from within an IPython Notebook
Cherrs,
Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20170306/ce86358e/attachment.pgp>
More information about the yt-users
mailing list