[yt-users] Problem using Multiplot_yt

rahul kashyap rahulkashyap411 at gmail.com
Sat Nov 19 21:51:35 PST 2016


Some attempts which didn't work. The callback is pasted on
http://paste.yt-project.org/show/6931/

I tried putting fields in the call

eps_fig = eps.multiplot_yt(2, 2, s,["density","temperature",
"velocity_magnitude","pressure"], bare_axes=True)

I also tried putting a break point in the yt/visualization/eps_writer.py

figure = multiplot(ncol, nrow, yt_plots=plots, fields=fields, **kwargs)




On Sun, Nov 20, 2016 at 12:35 AM, rahul kashyap <rahulkashyap411 at gmail.com>
wrote:

> Hi,
>
> After doing
>
> import yt.visualization.eps_writer as eps
> from yt.visualization.eps_writer import multiplot_yt
> s = yt.SlicePlot(ds, "z", ["density","temperature", "velocity_magnitude","pressure"],
> center="max")
>
> This works for me
>
> eps_fig = eps.single_plot(s)
> eps_fig.save_fig('zoom', format='eps')
> eps_fig.save_fig('zoom-pdf', format='pdf')
>
> *But, the code below doesn't work for me; error is "YTFieldNotFound: Could
> not find field '('io', 0)' in super3d_hdf5_plt_cnt_0000."*
>
> s.set_width(2.e9, 'cm')
> eps_fig = eps.multiplot_yt(2, 2, s, bare_axes=True)     #not working now
> #eps_fig.scale_line(0.2, '5 kpc')
> eps_fig.save_fig('multi', format='eps')
>
> Any help would be appreciated, Thanks
> -Rahul Kashyap
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161120/c4f0cb62/attachment-0001.htm>


More information about the yt-users mailing list