Jae-Joon Lee <lee.j.joon-re5jqeeqqe8avxtiumw...@public.gmane.org> writes:
> On Fri, Oct 12, 2012 at 3:39 AM, Nikolaus Rath 
> <nikolaus-bth8mxji...@public.gmane.org> wrote:
>> matplotlib actually rescales the raw imshow data when saving to a vector
>> format? Why is that? I think it should embed the bitmap with full
>> resolution in the vector file and rely on the consumer of the vector
>> file to scale it to whatever resolution is supported by the display
>> device.
>
> imshow supports interpolation and that's why rasterization comes in.
> If you turn off interpolation (w/ interpolation="none"), the original
> image will be embedded. Of course dpi has no meaning in this case.
>
> However, I agree with you that dpi should be a property of the backend
> only, not the figure. But I am not sure if this can be fixed soon. It
> will be difficult and will take lots of effort I think.

Yeah, that's what I feared. But in the mean time, are there any best
practices to minimize undesired effects like the one above? For example,
are there any other functions that need special parameters to not raster
their output when writing to a vector format? And is there a way to get
a figure on the screen with the right size when I don't know what dpi
the monitor is running with?

Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to