SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: Steve C. <ste...@ya...> - 2005年06月18日 11:18:40
I noticed (using GTKAgg) that if I save a png and svg of the same Figure
the width, height of the output files do not agree.
FigureCanvasSVG.print_figure() ignores the dpi argument and prints at a 
fixed dpi of 72, why is that? I know PS has a native dpi of 72, but I 
don't think that applies to SVG. SVG is scalable - its not limited
to a single, fixed, pixel size.
Also the SVG files produces something like
<svg
 width="576.000000"
 height="432.000000" 
 ...
I think the width, height should be integers.
Steve
Send instant messages to your online friends http://au.messenger.yahoo.com 
From: Florent R. <flo...@fr...> - 2005年06月18日 18:32:10
Hi,
Steve Chaplin <ste...@ya...> wrote:
> FigureCanvasSVG.print_figure() ignores the dpi argument and prints at a 
> fixed dpi of 72, why is that? I know PS has a native dpi of 72, but I 
> don't think that applies to SVG. SVG is scalable - its not limited
> to a single, fixed, pixel size.
I don't know the answer to your question but will address your comment
on PS. It is a fully scalable format. The elements in a PostScript file
are expressed in PostScript points, but that is nothing more than a
unit. That doesn't need to map to pixels. It just says that some element
that is described as 72 PostScript points long should take 1 inch once
printed (if you want to respect the size intended by the creator of the
PostScript file).
All this AFAIK, since I don't know the PostScript programming language.
BTW: PostScript point != point in general; for instance, in TeX, 1 point
 is 1/72.27 inch (therefore, a bit smaller than 1 PostScript point).
-- 
Florent
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /