<div dir="ltr"><div><div><div><div><div><div><div><div>Hey, <br><br></div>It failed too. <br><br>Traceback (most recent call last):<br> File "wise.py", line 9, 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> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/canvas.py", line 48, in wrappedindocument<br>
return method(d, file, **write_kwargs)<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/document.py", line 165, in writeEPSfile<br> pswriter.EPSwriter(self, _outputstream(file, "eps"), **kwargs)<br>
File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/pswriter.py", line 140, in __init__<br> page.processPS(pagefile, self, acontext, registry, pagebbox)<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/document.py", line 129, in processPS<br>
self._process("processPS", *args)<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/document.py", line 78, in _process<br> bbox.set(self.canvas.bbox()) # this bbox is not accurate<br>
File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/canvas.py", line 156, in bbox<br> obbox += cmd.bbox()<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/graph/graph.py", line 181, in bbox<br>
self.finish()<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/graph/graph.py", line 311, in finish<br> self.doaxes()<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/graph/graph.py", line 588, in doaxes<br>
self.dolayout()<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/graph/graph.py", line 572, in dolayout<br> self.doaxiscreate(axisname)<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/graph/graph.py", line 248, in doaxiscreate<br>
self.axes[axisname].create()<br> File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/graph/axis/axis.py", line 586, in create<br> self.canvas = self.axis.create(self.data, self.positioner, self.graphtexrunner, self.errorname)<br>
File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/graph/axis/axis.py", line 270, in create<br> return _regularaxis._create(self, data, positioner, graphtexrunner, self.parter, self.rater, errorname)<br>
File "/homeappl/home/regan/appl_taito/YT/Dev/yt-x86_64/lib/python2.7/site-packages/pyx/graph/axis/axis.py", line 202, in _create<br> raise RuntimeError("no axis partitioning found%s" % errorname)<br>
RuntimeError: no axis partitioning found for axis y2<br><br><br></div>Again on the save(). As I understand YT is set up to be somewhat machine independent in that all libraries are contained in the YT installation - in this case the PyX. <br>
</div>I wonder then could there be something in my dev version of YT that is screwed up. <br><br></div>Just to confirm what I need to do when I pull down your patch. <br><br>cd .../yt-x86_64/src/yt-hg<br>hg pull -r 49a5b85 <a href="https://bitbucket.org/jwise77/yt-clean">https://bitbucket.org/jwise77/yt-clean</a><br>
</div>hg update<br><br></div>I then removed the done file and reran the install script. That may not have been necessary though - I'm not sure. <br><br></div>Maybe I should try pulling your patch down onto my stable version?<br>
<br></div>John<br><div><div><div><div><div><br><br></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 November 2013 16:28, 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">That version should be fine. I just used that version on my *buntu 13.10 machine. It also worked on a 13.04 machine with an old svn checkout (before 0.12) of PyX.<br>
<br>
As a warning, don't use the PyX svn repository because since July or August, it's only compatible with Python 3.<br>
<br>
Could you try this script to see if it works for you? It works on two of my computers.<br>
<br>
<a href="http://paste.yt-project.org/show/4031/" target="_blank">http://paste.yt-project.org/<u></u>show/4031/</a><br>
<br>
Thanks,<br>
John<div class="im"><br>
<br>
On 11/06/2013 09:13 AM, John Regan wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
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/" target="_blank">http://pyx.sourceforge.net/</a><br>
Author: Jörg Lehmann, André Wobst<br>
<br>
<br>
Maybe an upgrade is needed?<br>
<br>
<br>
On 6 November 2013 16:09, John Wise <<a href="mailto:jwise@physics.gatech.edu" target="_blank">jwise@physics.gatech.edu</a><br></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></div><div class="im">
Which version of PyX are you running?<br>
<br>
Thanks,<br>
John<br>
<br>
<br>
On 11/06/2013 09:08 AM, John Regan wrote:<br>
<br>
Hi John,<br>
<br>
I pulled down your update onto my Dev installation and ran it.<br>
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></div>
"/homeappl/home/regan/appl___<u></u>taito/YT/Dev/yt-x86_64/lib/__<u></u>python2.7/threading.py",<div class="im"><br>
line 810, in __bootstrap_inner<br>
self.run()<br>
File<br></div>
"/homeappl/home/regan/appl___<u></u>taito/YT/Dev/yt-x86_64/lib/__<u></u>python2.7/site-packages/pyx/__<u></u>text.py",<div class="im"><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></div>
"/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)<div class="im"><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>
<mailto:<a href="mailto:jwise@physics.gatech.edu" target="_blank">jwise@physics.gatech.<u></u>edu</a>><br></div>
<mailto:<a href="mailto:jwise@physics.gatech." target="_blank">jwise@physics.gatech.</a>_<u></u>_edu<div class="im"><br>
<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<br>
seems like<br>
the eps_writer was never compatible with off-axis projections.<br>
Plus, it hasn't been updated to be compatible with<br>
PlotWindows.<br>
<br>
I've made the necessary changes to eps_writer so it works<br>
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>
hg pull -r 49a5b85<br></div>
<a href="https://bitbucket.org/jwise77/____yt-clean" target="_blank">https://bitbucket.org/jwise77/<u></u>____yt-clean</a><br>
<<a href="https://bitbucket.org/jwise77/__yt-clean" target="_blank">https://bitbucket.org/<u></u>jwise77/__yt-clean</a>><br>
<br>
<<a href="https://bitbucket.org/__jwise77/yt-clean" target="_blank">https://bitbucket.org/__<u></u>jwise77/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<br>
decorate some<br>
plots. It's a very nice feature but I haven't been able<br>
to get in to<br>
work with the output from OffAxisProjectionPlot() or<br>
off_axis_projection(). Basically I call one of these<br>
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<br>
attribute<br>
and so<br>
when insert_image_yt() gets called the script fails as<br>
it tries to<br>
access this attribute. I can workaround the issue by<br>
creating the<br>
projection and converting the image to jpg and passing<br>
the jpg<br>
image to<br>
insert_image() and it works great but it's not very<br>
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<br>
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>_____________________<div class="im"><br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<mailto:<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.<u></u>spacepope.org</a>><br></div>
<mailto:<a href="mailto:yt-users@lists." target="_blank">yt-users@lists.</a>__<a href="http://spacepope.org" target="_blank">space<u></u>pope.org</a><br>
<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>
<<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>>><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>_____________________<div class="im"><br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<mailto:<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.<u></u>spacepope.org</a>><br></div>
<mailto:<a href="mailto:yt-users@lists." target="_blank">yt-users@lists.</a>__<a href="http://spacepope.org" target="_blank">space<u></u>pope.org</a><br>
<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>><br>
<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><div class="h5"><br>
<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> <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>><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>
______________________________<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>><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></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>