different PNG and PDF output...

Hi,

with the new version of matplotlib, the legend looks different in png and
pdf!

I could post examples, but you can look in the galery also:
http://matplotlib.sourceforge.net/gallery.html

for example the legend_demo3
http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo3.html
* PNG:
http://matplotlib.sourceforge.net/_static/plot_directive/mpl_examples/pylab_examples/legend_demo3.hires.png
* PDF:
http://matplotlib.sourceforge.net/_static/plot_directive/mpl_examples/pylab_examples/legend_demo3.pdf

You see in the png the lines are short and not vertically centered, padding
between axes an legend text are ignored .. and so on

···


View this message in context: http://www.nabble.com/different-PNG-and-PDF-output…-tp21028686p21028686.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

This looks like a dpi issue -- that is the only difference between the regular and hi-res png. Jae-Joon -- do you have any thoughts? Perhaps something is dpi-dependent in the new legend code where it shouldn't be?

Mike

Lebostein wrote:

···

Hi,

with the new version of matplotlib, the legend looks different in png and
pdf!

I could post examples, but you can look in the galery also:
http://matplotlib.sourceforge.net/gallery.html

for example the legend_demo3
http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo3.html
* PNG:
http://matplotlib.sourceforge.net/_static/plot_directive/mpl_examples/pylab_examples/legend_demo3.hires.png
* PDF:
http://matplotlib.sourceforge.net/_static/plot_directive/mpl_examples/pylab_examples/legend_demo3.pdf

You see in the png the lines are short and not vertically centered, padding
between axes an legend text are ignored .. and so on
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

I also observed this with eps output. The png looked fine, but the eps legend
was very large in my case.

j

Lebostein wrote:

···

Hi,

with the new version of matplotlib, the legend looks different in png and
pdf!

I could post examples, but you can look in the galery also:
http://matplotlib.sourceforge.net/gallery.html

for example the legend_demo3
http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo3.html
* PNG:
http://matplotlib.sourceforge.net/_static/plot_directive/mpl_examples/pylab_examples/legend_demo3.hires.png
* PDF:
http://matplotlib.sourceforge.net/_static/plot_directive/mpl_examples/pylab_examples/legend_demo3.pdf

You see in the png the lines are short and not vertically centered,
padding between axes an legend text are ignored .. and so on

--
View this message in context: http://www.nabble.com/different-PNG-and-PDF-output…-tp21028686p21037465.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Hmm, it is not clear to me if this is a same issue. I think eps output
is not very sensitive to dpi thing in matplotlib.

I tried a few tests but couldn't see any obvious problems.
If my patch does not fix your problem, please report some more details.

Regards,

-JJ

···

On Tue, Dec 16, 2008 at 12:17 PM, jkitchin <jkitchin@...1648...> wrote:

I also observed this with eps output. The png looked fine, but the eps legend
was very large in my case.

j

OK, now it works! Thank you!

A little thing: the shadow of the legend box is not scaling with the dpi.
For example with 300 dpi I can't discover the shadow...

···


View this message in context: http://www.nabble.com/different-PNG-and-PDF-output…-tp21028686p21109783.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

This also should be fixed in the maintenance branch and the trunk.
Thanks for reporting.

-JJ

···

On Sat, Dec 20, 2008 at 6:02 PM, Lebostein <Lebostein@...380...> wrote:

A little thing: the shadow of the legend box is not scaling with the dpi.
For example with 300 dpi I can't discover the shadow...