<div dir="ltr"><div>Version Info:<br><br>Metadata-Version: 1.1<br>Name: PyX<br>Version: 0.12.1<br>Summary: Python package for the generation of PostScript and PDF files<br>Home-page: <a href="http://pyx.sourceforge.net/">http://pyx.sourceforge.net/</a><br>
Author: Jörg Lehmann, André Wobst<br><br><br></div>Maybe an upgrade is needed?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 November 2013 16:09, 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>
Which version of PyX are you running?<br>
<br>
Thanks,<br>
John<div><div class="h5"><br>
<br>
On 11/06/2013 09:08 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 John,<br>
<br>
I pulled down your update onto my Dev installation and ran it. The eps<br>
writer now successfully takes as input the plot window but fails on<br>
saving the plot.<br>
Any ideas? The error is below.<br>
<br>
Cheers,<br>
John<br>
<br>
<br>
<br>
<br>
Traceback (most recent call last):<br>
   File<br>
"/homeappl/home/regan/appl_<u></u>taito/YT/Dev/yt-x86_64/lib/<u></u>python2.7/threading.py",<br>
line 810, in __bootstrap_inner<br>
     self.run()<br>
   File<br>
"/homeappl/home/regan/appl_<u></u>taito/YT/Dev/yt-x86_64/lib/<u></u>python2.7/site-packages/pyx/<u></u>text.py",<br>
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<br>
"/homeappl/home/regan/appl_<u></u>taito/YT/Dev/yt-x86_64/src/yt-<u></u>hg/yt/visualization/eps_<u></u>writer.py",<br>
line 779, in save_fig<br>
     self.canvas.writeEPSfile(<u></u>filename)<br>
<br>
<br>
On 5 November 2013 22:44, John Wise <<a href="mailto:jwise@physics.gatech.edu" target="_blank">jwise@physics.gatech.edu</a><br></div></div><div class="im">
<mailto:<a href="mailto:jwise@physics.gatech.edu" target="_blank">jwise@physics.gatech.<u></u>edu</a>>> wrote:<br>
<br>
    Hi John,<br>
<br>
    Thanks for bringing this to our attention.  I've done the same<br>
    workaround with eps_writer before, and it's a pain!  It seems like<br>
    the eps_writer was never compatible with off-axis projections.<br>
      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<br>
    windows now.  I've tested it with slices, projections, off-axis<br>
    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<br>
    merged, please go ahead!<br>
<br></div>
    hg pull -r 49a5b85 <a href="https://bitbucket.org/jwise77/__yt-clean" target="_blank">https://bitbucket.org/jwise77/<u></u>__yt-clean</a><div><div class="h5"><br>
    <<a href="https://bitbucket.org/jwise77/yt-clean" target="_blank">https://bitbucket.org/<u></u>jwise77/yt-clean</a>><br>
    hg update<br>
<br>
    Let me know if this works for you.<br>
<br>
    Cheers,<br>
    John<br>
<br>
<br>
    On 11/05/2013 10:13 AM, John Regan wrote:<br>
<br>
        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,<br>
        produce<br>
        a nice projection and would like to pass that object to<br>
        eps.single_plot<br>
        and make some modifications.<br>
<br>
        The problem is that PWViewrMPL object has no colorbar attribute<br>
        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<br>
        image to<br>
        insert_image() and it works great but it's not very clean. It<br>
        would be<br>
        nice to pass the PWViewrMPL object in somehow.<br>
<br>
        Just wondering if another wrapper function is needed or if there<br>
        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> <mailto:<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.<u></u>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><div class="im"><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>
<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></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> <mailto:<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.<u></u>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>
    <<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>><div class="im"><br>
<br>
<br>
<br>
<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>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<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>
</div></div></blockquote></div><br></div>