On 2012/10/26 6:00 PM, Jody Klymak wrote:
>
> Hi all,
>
> So I figured out the magic of "rasterized=True", which is *really*
> helpful!
>
> However, the colorbar doesn't seem to accept rasterized=True, so
> there are little lines every facet (zoom on the attached pdf).  Is
> there another way to get the colorbar colors rasterized?

Try:

cb = colorbar()
cb.solids.set_rasterized(True)

Incidentally, the lines in the pdf are an artifact of most pdf viewers, 
not a bug in the pdf file.  It is possible that there is some way to 
construct the pdf files such that this does not happen, without 
introducing other artifacts, but we have never found one.

Eric

>
> Thanks Jody
> x = linspace(0,1,1000)
> X = outer(x,x)
> pcolormesh(X,cmap=get_cmap('RdBu_r',lut=32),rasterized=True)
> colorbar()
> savefig('Test.pdf',dpi=50)
>
>
>
>
> --
> Jody Klymak
> http://web.uvic.ca/~jklymak/
>
>
>
>
>
> ------------------------------------------------------------------------------
> WINDOWS 8 is here.
> Millions of people.  Your app in 30 days.
> Visit The Windows 8 Center at Sourceforge for all your go to resources.
> http://windows8center.sourceforge.net/
> join-generation-app-and-make-money-coding-fast/
>
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>



------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to