26 Jul
2018
26 Jul
'18
3:41 a.m.
The above worked perfectly. For anyone potentially looking at this in the future, I did the following (even with annotations using separate variables and Exodus); ds = yt.load("somefile.e") slc = yt.SlicePlot(ds, 2, 'var1') slc.annotate_contour('var2') slc._setup_plots() fig = slc.plots['var1'].figure with yt.funcs.matplotlib_style_context(): fig.savefig('my_plot.pdf', transparent=True) Also... I definitely goofed when submitting this. I'm not sure how HyperKitty works but the following thread can be deleted if possible as a duplicate: https://mail.python.org/mm3/archives/list/yt-users@python.org/thread/I3R2SHF...