|
From: Benjamin L. <bj...@gm...> - 2011-02-03 13:34:46
|
Hello list,
For the windows terminal, when using rotated enhanced text (e.g. for
the ylabel) the text positioning is buggy.
This manifests itself with either sub/superscripts or font changes
(e.g. something like "pressure in N/mm^2" or "height in {/Symbol m}m")
- see the testcase below
I believe I tracked it down to the text extent being caclulated wrong,
more precisely: the text extent is first calculated and then scaled to
the terminal's coordinate system. And here the relative scaling is
done only with respect to the terminal's width, and not (also) with
respect to the terminal's height. So if the terminal's width is larger
than it's height (a common scenario), the relative coordinates for
rotated text are wrong.
I prepared a patch, which corrects this issue for me.
As testcase use:
set term windows enhanced
plot [0:2*pi] sin(x) with linespoints
set xlabel "length in {/Symbol m}m"
set ylabel "height in {/Symbol m}m"
replot
benjamin
|