|
From: Ethan A M. <sf...@us...> - 2011-02-03 17:14:13
|
On Thursday, February 03, 2011 05:34:39 am Benjamin Lindner wrote:
> Hello list,
>
> For the windows terminal, when using rotated enhanced text (e.g. for
> the ylabel) the text positioning is buggy.
Thanks for the analysis, and the patch.
Now we just have to wait for SourceForge to restore CVS access, which
has been disabled since a hacking attempt last week.
Ethan
> 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
>
|