<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 11, 2014 at 1:44 PM, Daniel Fenn <span dir="ltr"><<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Nathan. I have reproduced the error using the Sedov 3D dataset, and I'll file a bug report. I had originally tried just appending ".eps" to the filename, as you suggested, but for some reason the quality was really low--especially for text. I had better luck with the quality using just ".ps", but there seemed to be some bounding box issues, as the axes and colorbar were cut off.</div></blockquote><div><br></div><div>These sound like bugs too.  Any chance you can open a separate issue for this?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><br><div class="gmail_quote">2014-12-11 15:24 GMT-05:00 Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span>:<div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Dec 11, 2014 at 12:13 PM, Daniel Fenn <span dir="ltr"><<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>I'm having some difficulties saving a simple slice as an eps. I'm following the approach in the docs, where I first do </div><div><br></div><div>eps_fig = eps.single_plot(tempSlice), </div><div><br></div><div>where tempSlice is the name of my slice object. This throws an error in insert_image_yt() around line 477 (my line numbers might be slightly different, because I've been messing with the file). The error is that _p1 is not defined. Looking at the source, I can see that _p1 is only conditionally defined. In my particular case, self.canvas = None, so _p1 is never defined.</div><div><br></div><div>There's a block of logic in the following elif block (~ line 452) that looks like it's probably still applicable, but only gets called for phase plots when there is a canvas defined. It sets the field and defines _p1. As a temporary measure, I copied and pasted this code into the self.canvas==None block, just to see if it would work.</div><div><br></div><div>That seemed to get it past that issue, but then it soon runs into another issue in axis_box_yt(). Around line 290, the following line is executed:</div><div><br></div><div>_xrange = (0, width * plot.ds[units])<br></div></div></blockquote><div><br></div></span><div>This is likely because you are executing a code path that was never updated for yt 3.0</div><div><br></div><div>Can you reproduce this behavior using one of the test datasets on <a href="http://yt-project.org/data" target="_blank">yt-project.org/data</a>?  If so, can you file a bug report?</div><div><br></div><div>Also, FWIW, you can save a normal PlotWindow plot as eps, just append .eps to the path you pass to the save() function.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><div dir="ltr"><div></div><div><br></div><div><i>Units</i> is a string with a value of "km". Trying to execute this line throws a key error. I'm not exactly sure what the line is trying to do, but I'm guessing the second value in the tuple is supposed to be a number with a unit--perhaps something like YTQuantity(width, units)?</div><div><br></div><div>I'm hesitant to change too many things here, because I'm not entirely sure what's going on. Are these problems that anyone else has run into?</div><div><br></div><div>Thanks for any input,</div><div><br></div><div>Dan</div></div>
<br></span>_______________________________________________<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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div></div></div>
<br>_______________________________________________<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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div></div></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div></div></div>