<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi Junhwan,<div><br></div><div>So I think this is a bug in the eps writer. I was able to adopt your script somewhat to make it runnable using one of the public test datasets on <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__yt-2Dproject.org_data&d=BQMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NE16C-nW7NLx_zTDuzVe_gcQAmC9ujbJuZDV1tRaw3g&s=GhlgxnjDnIPUGw6FGjOE4X5MoQzZyKy8pb1ClKQxy1M&e=">yt-project.org/data</a>:</div><div><br></div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__paste.yt-2Dproject.org_show_6173_&d=BQMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NE16C-nW7NLx_zTDuzVe_gcQAmC9ujbJuZDV1tRaw3g&s=FCv2v3-E9N766UKEHp9shAUzd6Q42jbx35UM4WByDS4&e=">http://paste.yt-project.org/show/6173/</a><br></div><div><br></div><div>With the following modification to the eps_writer, I'm able to at least make the margins between the plots along the y-axis go away:</div><div><br></div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__paste.yt-2Dproject.org_show_6174_&d=BQMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NE16C-nW7NLx_zTDuzVe_gcQAmC9ujbJuZDV1tRaw3g&s=M61CQxKfSjFR1S-JnbtsulVsz5IMIhm5q6TuoWE2ElM&e=">http://paste.yt-project.org/show/6174/</a><br></div><div><br></div><div>The image looks like this:</div><div><br></div><div><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__imgur.com_E0uzPCh&d=BQMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NE16C-nW7NLx_zTDuzVe_gcQAmC9ujbJuZDV1tRaw3g&s=flMvJx5I1RbybSgXI6g8vD8Su7vLVG062LTd8jFUNy8&e=">http://imgur.com/E0uzPCh</a><br></div><div><br></div><div>Unfortunately, the eps writer is pretty complicated, and I don't really know anything about pyx, so it's hard for me to reason about what's going on in here. There's something wrong with how the plot positions are being determined, but I'm not sure what it is...</div><div><br></div><div>Sorry to not have a more definitive answer. If you're able to figure out what's going wrong, I'm sure a pull request with a fix would be very welcome.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 19, 2016 at 9:14 AM, Junhwan Choi (최준환) <span dir="ltr"><<a href="mailto:choi.junhwan@gmail.com" target="_blank">choi.junhwan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi yt user,<br>
<br>
I try to make a multi panels plot with eps_writer modules.<br>
I use following script and it works with one unpleasant shortcoming.<br>
==================================================<br>
import matplotlib as matplotlib<br>
matplotlib.use('Agg')<br>
import numpy as np<br>
import matplotlib.pylab as pylab<br>
import yt<br>
import yt.units as units<br>
import yt.visualization.eps_writer as eps<br>
import pyx<br>
<br>
index = 60<br>
ds = yt.load('../DD%04d/DD%04d' % (index,index))<br>
ds.add_particle_filter('sink')<br>
ad = ds.all_data()<br>
center = ds.find_max(('gas', 'density'))[1]<br>
<br>
# scale and limit<br>
LBox = [4000, 4]<br>
<br>
plot_list = []<br>
for nrow in range(0,2):<br>
    for norm in 'zxy':<br>
        pc =yt.SlicePlot(ds, norm, ('gas', 'density'), center=center)<br>
        pc.set_width(LBox[nrow],"pc")<br>
        plot_list.append(pc)<br>
<br>
ep = eps.multiplot(ncol=3, nrow=2, yt_plots=plot_list, bare_axes = True)<br>
ep.title_box("xy", loc=(0.1,1.95))<br>
ep.title_box("yz", loc=(1.1,1.95))<br>
ep.title_box("xz", loc=(2.1,1.95))<br>
ep.scale_line(label="%6.0f kpc" % (LBox[0]/4000.0), size=0.25,<br>
linewidth=pyx.style.linewidth.Thick, loc=(0.05,1.08))<br>
ep.scale_line(label="%6.0f pc"  % (LBox[1]/4.0)   , size=0.25,<br>
linewidth=pyx.style.linewidth.Thick, loc=(0.05,0.08))<br>
ep.save_fig("multi_plot")<br>
==================================================<br>
<br>
Here, I attach the resulting plot.<br>
Everything is fine except there are white spacing/margin between panels.<br>
Is there any way to remove the white spacing/margin?<br>
<br>
Thanks in advance,<br>
Junhwan<br>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.spacepope.org_listinfo.cgi_yt-2Dusers-2Dspacepope.org&d=BQMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NE16C-nW7NLx_zTDuzVe_gcQAmC9ujbJuZDV1tRaw3g&s=6L_KN49F_EsJVnK-Hgk5UBZpSMrpfG3qJspqknrL0ac&e=" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>