On Fri, 1 Feb 2008, Mark Bakker apparently wrote:
> you claim that 1pt = 1/72 inch.  Is that always the case?  
> And why? How does mpl figure that out

Based on the discussion for far,
I assume it works like this.

(figsize in inches) * dpi = (size in pixels)

So if you draw a line 72 points long,
which is 1" in figsize units,
then it will display as being dpi pixels in length.

So for PNG, for example, figsize is a kind of
Platonic concept, which we view dimly through
the actual size of our figure.

By the way, I've discovered that browser scaling
of PNGs does not work very well (fuzzy fonts), so
setting both figsize and dpi correctly proves
rather important.  In contrast to best practice
for loading speed, you should not set the size
of your IMG element.  Or so it seems.

fwiw,
Alan




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to