Hi John,<br><br>I've found some success when supplying the "dpi" keyword to savefig.  This seems to most often work for Cameron's issue by writing to png with dpi=200.  I've also seen this problem before when writing directly to pdf and this wasn't able to fix it.  My solution there was just to png and use convert to convert it to pdf or eps.<br>
<br>Britton<br><br><div class="gmail_quote">On Sat, Feb 11, 2012 at 1:47 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:goldbaum@ucolick.org">goldbaum@ucolick.org</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 backend are you using?  I've had luck in the past with the macosx backend.  You may also want to try the ps or cairo backends.  I wish there was more documentation on this, but unfortunately, the section of the matplotlib docs on the different backend choices seems to have been removed: <a href="http://matplotlib.sourceforge.net/backends.html" target="_blank">http://matplotlib.sourceforge.net/backends.html</a><br>

<br>
-Nathan<br>
<div><div class="h5"><br>
On Feb 11, 2012, at 10:34 AM, Cameron Hummels wrote:<br>
<br>
> Hi John,<br>
><br>
> I've also experienced this before, although I got the banding when I saved to .png, and I didn't get the banding when I switched to .eps.  I played around with stuff, but I couldn't seem to get rid of the banding, and since it was a minor effect I let it slide.  I'd be interested to hear if you find a solution, though!  Good luck.<br>

><br>
> Cameron<br>
><br>
> On 02/11/2012 11:12 AM, John ZuHone wrote:<br>
>> Hi all,<br>
>><br>
>> Firstly, I recognize I should probably send this to a matplotlib list so I will do that also. However, I figure this is not a bad place to ask.<br>
>><br>
>> I'm using matplotlib to write EPS figures, just simply using<br>
>><br>
>> fig.savefig("test.eps").<br>
>><br>
>> However, I'm getting banding effects in the colorbar that I'm not seeing with other formats. I've attached an example. Any suggestions?<br>
>><br>
>> Best,<br>
>><br>
>> John Z<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>><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>
> --<br>
> Cameron Hummels<br>
> PhD Candidate, Astronomy Department of Columbia University<br>
> Public Outreach Director, Astronomy Department of Columbia University<br>
> NASA IYA New York State Student Ambassador<br>
><br>
> <a href="http://outreach.astro.columbia.edu" target="_blank">http://outreach.astro.columbia.edu</a><br>
><br>
> PGP: 0x06F886E3<br>
><br>
</div></div>> !DSPAM:10175,4f36b47e132261473815127!<br>
<div class="im">> _______________________________________________<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>
><br>
</div>> !DSPAM:10175,4f36b47e132261473815127!<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br>