[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Usage of "{}" as default fontname for gnuplot
From: |
Ben Abbott |
Subject: |
Re: Usage of "{}" as default fontname for gnuplot |
Date: |
Thu, 17 Feb 2011 07:20:51 -0500 |
On Feb 17, 2011, at 3:18 AM, Benjamin Lindner wrote:
>> 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
The original report by Michael Godfrey indicates that when using the FLTK
backend and the fontname "*", that TeX style exponentiation did not work. There
was no problem for the gnuplot backend.
Did you try the examples for the FLTK backend?
Ben
- Usage of "{}" as default fontname for gnuplot, Benjamin Lindner, 2011/02/16
- Re: Usage of "{}" as default fontname for gnuplot, Benjamin Lindner, 2011/02/16
- Re: Usage of "{}" as default fontname for gnuplot, David Bateman, 2011/02/16
- Re: Usage of "{}" as default fontname for gnuplot, Benjamin Lindner, 2011/02/17
- Re: Usage of "{}" as default fontname for gnuplot,
Ben Abbott <=
- Re: Usage of "{}" as default fontname for gnuplot, Benjamin Lindner, 2011/02/17
- Re: Usage of "{}" as default fontname for gnuplot, Ben Abbott, 2011/02/17
- Re: Usage of "{}" as default fontname for gnuplot, Benjamin Lindner, 2011/02/17
- Re: Usage of "{}" as default fontname for gnuplot, bpabbott, 2011/02/17