<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Ok John, will do. Thanks.</div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-11 17:09 GMT-05:00 John Wise <span dir="ltr"><<a href="mailto:jwise@physics.gatech.edu" target="_blank">jwise@physics.gatech.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daniel,<br>
<br>
Sorry to hear that you're having trouble with the eps_writer module in yt.  Please assign me to the issue.  I will fix this issue.<br>
<br>
Thanks,<br>
John<span class=""><br>
<br>
On 12/11/2014 03:24 PM, Nathan Goldbaum wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
<br>
On Thu, Dec 11, 2014 at 12:13 PM, Daniel Fenn <<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a><br></span><span class="">
<mailto:<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>>> wrote:<br>
<br>
    Hi everyone,<br>
<br>
    I'm having some difficulties saving a simple slice as an eps. I'm<br>
    following the approach in the docs, where I first do<br>
<br>
    eps_fig = eps.single_plot(tempSlice),<br>
<br>
    where tempSlice is the name of my slice object. This throws an error<br>
    in insert_image_yt() around line 477 (my line numbers might be<br>
    slightly different, because I've been messing with the file). The<br>
    error is that _p1 is not defined. Looking at the source, I can see<br>
    that _p1 is only conditionally defined. In my particular case,<br>
    self.canvas = None, so _p1 is never defined.<br>
<br>
    There's a block of logic in the following elif block (~ line 452)<br>
    that looks like it's probably still applicable, but only gets called<br>
    for phase plots when there is a canvas defined. It sets the field<br>
    and defines _p1. As a temporary measure, I copied and pasted this<br>
    code into the self.canvas==None block, just to see if it would work.<br>
<br>
    That seemed to get it past that issue, but then it soon runs into<br>
    another issue in axis_box_yt(). Around line 290, the following line<br>
    is executed:<br>
<br>
    _xrange = (0, width * plot.ds[units])<br>
<br>
<br>
This is likely because you are executing a code path that was never<br>
updated for yt 3.0<br>
<br>
Can you reproduce this behavior using one of the test datasets on<br>
</span><a href="http://yt-project.org/data" target="_blank">yt-project.org/data</a> <<a href="http://yt-project.org/data" target="_blank">http://yt-project.org/data</a>>?  If so, can you file a<span class=""><br>
bug report?<br>
<br>
Also, FWIW, you can save a normal PlotWindow plot as eps, just append<br>
.eps to the path you pass to the save() function.<br>
<br>
<br></span>
    /Units/ is a string with a value of "km". Trying to execute this<span class=""><br>
    line throws a key error. I'm not exactly sure what the line is<br>
    trying to do, but I'm guessing the second value in the tuple is<br>
    supposed to be a number with a unit--perhaps something like<br>
    YTQuantity(width, units)?<br>
<br>
    I'm hesitant to change too many things here, because I'm not<br>
    entirely sure what's going on. Are these problems that anyone else<br>
    has run into?<br>
<br>
    Thanks for any input,<br>
<br>
    Dan<br>
<br>
    ______________________________<u></u>_________________<br>
    yt-users mailing list<br></span>
    <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><span class=""><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>
</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></font></span><div class="HOEnZb"><div class="h5"><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>