|
From: Marius 't H. <ma...@ai...> - 2007-01-01 17:06:20
|
Hello MPL users,
I've been trying to create high-resolution graphics made with imshow()
for a publication lately and I can't seem to manage that. Attached you
can find an SVG file created with
canvas.print_figure("svg-dpi-test.svg", dpi=300)
Which should create a much higher resolution than it does. It doesn't
work to save it as eps first (even though I have less freedom to What
also got my attention was that when creating a figure with a high dpi
this does not increase dpi, but increases font-size. In my expectations
increasing dpi should not affect font-size, or if font-size is specified
in pixels it should decrease font-size. Now it seems as though font-size
is inversely correlated to dpi, which feels wrong. The reason I
elaborate on this is that it may be that I totally misunderstand the way
resolution is handled by MPL, in which case I would appreciate some
pointers.
Creating a PNG from the pop-up window by show()ing the output gives a
somewhat higher resolution, but also removes the freedom to change
things, and the maximum resolution seems to be limited by the
screen-size anyway. (It might be nice to include a resolution option there.)
Another issue I have with the SVG output is that the images are out of
their boxes on the bottom and on the right side. This only happens when
creating an SVG.
Any help would be appreciated!
Marius 't Hart.
|