From: Jouni K. S. <jk...@ik...> - 2012-04-10 17:38:56
|
Eric Firing <ef...@ha...> writes: >> A different approach would be to output a raster image from pcolor and >> render it with large pixels. I don't know how well that would work with >> Agg, though. >> > I don't understand; wouldn't this wreck accuracy and defeat the purpose > of using pdf (scalability)? I meant the same thing that happens when you do imshow(image, interpolation='None') and save as pdf. Each rectangle becomes one pixel in an embedded raster image object, which is rendered crisply by the viewer. Crisply, that is, if the viewer is Adobe Reader, ghostscript or xpdf. If you zoom in in Apple's Preview.app, the image looks blurry. But maybe blurriness in one out of four renderers is better than white lines in three out of four? -- Jouni K. Seppänen http://www.iki.fi/jks |