<div dir="ltr"><div><div><div>Hi John, <br><br></div>I pulled down your update onto my Dev installation and ran it. The eps writer now successfully takes as input the plot window but fails on saving the plot. <br></div>Any ideas? The error is below.<br>
<br></div><div>Cheers,<br>John<br></div><div><br><br></div><div><div><br><br>Traceback (most recent call last):<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/threading.py", line 810, in __bootstrap_inner<br>
self.run()<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/text.py", line 663, in run<br> raise RuntimeError("TeX/LaTeX finished unexpectedly")<br>RuntimeError: TeX/LaTeX finished unexpectedly<br>
<br>still waiting for tex after 5 (of 60) seconds...<br>still waiting for tex after 10 (of 60) seconds...<br>still waiting for tex after 15 (of 60) seconds...<br>still waiting for tex after 20 (of 60) seconds...<br>still waiting for tex after 25 (of 60) seconds...<br>
still waiting for tex after 30 (of 60) seconds...<br>still waiting for tex after 35 (of 60) seconds...<br>still waiting for tex after 40 (of 60) seconds...<br>still waiting for tex after 45 (of 60) seconds...<br>still waiting for tex after 50 (of 60) seconds...<br>
still waiting for tex after 55 (of 60) seconds...<br>the timeout of 60 seconds expired and tex did not respond.<br>We try to finish the dvi due to an unhandled tex error<br>Traceback (most recent call last):<br> File "OffAxisProjection.py", line 74, in <module><br>
ep.save_fig("test", format="eps")<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/src/yt-hg/yt/visualization/eps_writer.py", line 779, in save_fig<br> self.canvas.writeEPSfile(filename)<br>
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 November 2013 22:44, John Wise <span dir="ltr"><<a href="mailto:jwise@physics.gatech.edu" target="_blank">jwise@physics.gatech.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi John,<br>
<br>
Thanks for bringing this to our attention. I've done the same workaround with eps_writer before, and it's a pain! It seems like the eps_writer was never compatible with off-axis projections. Plus, it hasn't been updated to be compatible with PlotWindows.<br>
<br>
I've made the necessary changes to eps_writer so it works with plot windows now. I've tested it with slices, projections, off-axis projections, and phase plots, and they now work as desired.<br>
<br>
I've submitted a PR, but if you want to test it out before it's merged, please go ahead!<br>
<br>
hg pull -r 49a5b85 <a href="https://bitbucket.org/jwise77/yt-clean" target="_blank">https://bitbucket.org/jwise77/<u></u>yt-clean</a><br>
hg update<br>
<br>
Let me know if this works for you.<br>
<br>
Cheers,<br>
John<div><div class="h5"><br>
<br>
On 11/05/2013 10:13 AM, John Regan wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi All,<br>
<br>
<br>
I've been playing with the eps interface a little to decorate some<br>
plots. It's a very nice feature but I haven't been able to get in to<br>
work with the output from OffAxisProjectionPlot() or<br>
off_axis_projection(). Basically I call one of these functions, produce<br>
a nice projection and would like to pass that object to eps.single_plot<br>
and make some modifications.<br>
<br>
The problem is that PWViewrMPL object has no colorbar attribute and so<br>
when insert_image_yt() gets called the script fails as it tries to<br>
access this attribute. I can workaround the issue by creating the<br>
projection and converting the image to jpg and passing the jpg image to<br>
insert_image() and it works great but it's not very clean. It would be<br>
nice to pass the PWViewrMPL object in somehow.<br>
<br>
Just wondering if another wrapper function is needed or if there is an<br>
even easier way that I am missing.<br>
<br>
Cheers,<br>
John<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
John Wise<br>
Assistant Professor of Physics<br>
Center for Relativistic Astrophysics, Georgia Tech<br>
<a href="http://cosmo.gatech.edu" target="_blank">http://cosmo.gatech.edu</a><br>
______________________________<u></u>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</font></span></blockquote></div><br></div>