<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>This is a long-standing bug in matplotlib (discussed here: <a href="http://sourceforge.net/mailarchive/forum.php?thread_name=4D2DF596.3060503@hawaii.edu&forum_name=matplotlib-users">http://sourceforge.net/mailarchive/forum.php?thread_name=4D2DF596.3060503%40hawaii.edu&forum_name=matplotlib-users</a>)</div><div><br></div><div>It may be a bit of work on your part to make a simple script that reproduces the bug, but I think it would be worthwhile to report this on matplotlib-users and so that we can get an official response from the matplotlib developers.</div><div><br></div><div>I did and bit of googling but unfortunately I can't find a simple fix for this beyond Sam's suggestion to do the conversion to vector graphics by hand.</div><div><br></div><div>Cheers,</div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Nathan Goldbaum<br>Graduate Student<br>Astronomy & Astrophysics, UCSC<br><a href="mailto:goldbaum@ucolick.org">goldbaum@ucolick.org</a><br>http://www.ucolick.org/~goldbaum</div></span></div></span></div>
</div>
<br><div><div>On Jun 27, 2012, at 2:17 PM, Sam Skillman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Christine,<div><br></div><div>This doesn't fix the underlying issue, but I usually just dump the pngs out with a high dpi and use a conversion from png to eps.  If you have Gimp, you may want to give this a shot:</div>

<div><a href="http://code.google.com/p/agpy/source/browse/trunk/contributed/pngtoeps?r=247">http://code.google.com/p/agpy/source/browse/trunk/contributed/pngtoeps?r=247</a><br><br>Others might have better ideas, but my guess is a lot of them will deal with modifying your matplotlib backend, which I've never had great luck with for vector formats.</div>

<div><br></div><div>Best,</div><div>Sam<br><br><div class="gmail_quote">On Wed, Jun 27, 2012 at 3:10 PM, Christine Simpson <span dir="ltr"><<a href="mailto:csimpson@astro.columbia.edu" target="_blank">csimpson@astro.columbia.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
I have a question that may be more of a matplotlib question than a yt<br>
question, but it's an issue with some yt generated figures I have, so I<br>
thought I'd ask it here.  I think there was some discussion of this on<br>
the list a while ago but I can't find the thread.<br>
<br>
When I output images that include colorbars in vector formats (like pdf<br>
and eps), I get these little lines running across the color bar.  It<br>
goes away if I output the image in a rasterized format (like png).  I<br>
wanted to output my images in vector format (as pdfs) so everything<br>
looks nice and sharp.  I've figured out how to just rasterize the color<br>
bar.  However, I don't want to rasterize the color bar labels, and the<br>
way I've implemented it, the labels get rasterized too.  It seems in<br>
figure objects (and maybe axes objects?) there is a way to specify the<br>
order that items get drawn and/or rasterized (through the zorder and<br>
rasterized_zorder keywords); I've played around with this but haven't<br>
been able to get it to work.  The color bar is a Colorbar object and it<br>
doesn't seem like this class allows for adjusting the rasterization<br>
order of things.<br>
<br>
I've pasted an example script here:<br>
<a href="http://paste.yt-project.org/show/2504/" target="_blank">http://paste.yt-project.org/show/2504/</a><br>
I'm probably going to give up on this soon, but any advice people have<br>
would be greatly appreciated.<br>
<br>
Christine<br>
<br>
<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>
</blockquote></div><br></div>


!DSPAM:10175,4feb786c2390219978230!
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br><br><br>!DSPAM:10175,4feb786c2390219978230!<br></blockquote></div><br></body></html>