octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34939] legend size (gnuplot)


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #34939] legend size (gnuplot)
Date: Wed, 30 Nov 2011 02:40:21 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Follow-up Comment #4, bug #34939 (project octave):

There may be a problem with the fontsizes, but looking at your examples, they
look correct to me.

You've set it to 6pts, which will display as 6*dpi_monitor/72 pixels. Looking
at the png of your figure, I notice the font size is about 12 pixels. Thus, it
looks to me as if your monitor's dpi is about 140-150 dpi.

You can check the dpi of your monitor by 


dpi_monitor = get (0, "screenpixelsperinch")


The size of png output produced by print() is determined by ...


bitmap_size = get (gcf, "paperposition") (3:4) * 150


The size of the printed png is 1200x900, so that checks out.

The font size in pixels for the png should be 6 * 150 / 72 = 12.5 pixels.

Looking at the png output you provided, there are 13 pixels between baselines
of the legend labels. So this looks about right to me.

Notice that the text height relative to the figure size should look very
different because the figure window has a size of 560x420 pixels and the
printed version is 1200x900 pixels.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34939>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]