octave-maintainers
[Top][All Lists]
Advanced

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

Re: Usage of "{}" as default fontname for gnuplot


From: Benjamin Lindner
Subject: Re: Usage of "{}" as default fontname for gnuplot
Date: Thu, 17 Feb 2011 09:18:16 +0100

> Please see the bug report of why this change was made
>
> https://savannah.gnu.org/bugs/index.php?32118
>
> No I didn't test under windows, so didn't see this issue. However making
> the change you suggest will make the issue with the TeX interpreter
> under gnuplot come back

I can't quite follow the reasoning in the bug report, nor can I
reproduce the problem - perhaps I am missing something?

Here is what I tried:

With both 4.4.2 and a recent 4.5.0 CVS gnuplot:
    set term windows enhanced
    set label 1 "{/Symbol address@hidden e^{-x} dx" at  1.0,0.5 left
    plot x
works as expected.
    set label 1 "{/Symbol address@hidden e^{-x} dx" at  1.0,0.5 left font ",20"
also works as expected - the whole string is now printed with fontsize 20
The same goes for the wxt terminal, and for the postscript terminal.

So I don't see why you have to issue font "{},20" - it's AFAICS not
valid gnuplot syntax. And it exposes the here reported bug that
rotated ylabel text is no longer rotated - and others:
Try the following:

set term post enhanced font "Helvetica,14"
set output "test.ps"
set ylabel "foo in mm^2" font ",10"
set label 1 "{/Symbol address@hidden e^{-x} dx" at  1.0,0.5 left font ",20"
plot x
set output

set output "test2.ps"
set ylabel "foo in mm^2" font "{},10"
set label 1 "{/Symbol address@hidden e^{-x} dx" at  1.0,0.5 left font "{},20"
plot x
set output

I see that test.ps looks fine, but test2.ps has the wrong font for
both the ylabel and the text label.

I also tested your example in the bug report.
   set(gca,"fontname","*");
   text(0.5,0.5,'\int_0^x e^(-x) dx','fontsize',20)
and
   set (gca, "fontname", "Arial")
   text(0.5,0.5,'\int_0^x e^(-x) dx','fontsize',20)
both yield the same (correct) result - where the correct result is
that only the "(" parenthesis is displayed as superscript.
And both yield the same result with either the "{},20" or the ",20"
font setting.

So I am - back at the start - a bit confused as to the original bug report.
What did you see without the "{}" font setting?

benjamin


reply via email to

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