Hi again, The fix was easier than I thought. Can you test it out? If you installed yt with "INST_YT_SOURCE=1" in the install script, then you can issue the following commands in the yt source directory hg pull -u -r 9373defa8ed5 https://bitbucket.org/jwise77/yt python setup.py develop and see if your script now works. It works for me with a similar script as you posted. If you're using the conda installation, then you can follow the instructions in this previous email. http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2016-October/008... Let us know what you find. Thanks, John On 11/20/2016 08:34 AM, John Wise wrote:
Hi Rahul,
I can confirm that this is a bug with multiplot_yt. I'll get back to the list once I find a fix. In the meantime, can you create an issue on bitbucket?
Thanks, John
On 11/20/2016 12:51 AM, rahul kashyap wrote:
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@gmail.com <mailto:rahulkashyap411@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
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- John Wise Associate Professor of Physics Center for Relativistic Astrophysics, Georgia Tech http://cosmo.gatech.edu