• Re: Label problem

    From Karl Ratzsch@21:1/5 to All on Sun Feb 18 23:00:42 2024
    Symbol fonts?
    This is the year 2024, use utf8.

    Karl


    Am 18.02.2024 um 14:54 schrieb db:
    I am trying to get a ylabel like the LaTeX form $i\sqrt{\tau}$.
    Without the i it's easy, '{/Symbol \326 \164}' but as soon as
    introduce the i it goes haywire.
    How do get that label? I am plotting into postscript enh eps.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=C3=B6rg_Buchholz?=@21:1/5 to All on Tue Feb 20 09:01:16 2024
    On 19.02.2024 14:11, db wrote:
    On 18.02.2024 23.00, Karl Ratzsch wrote:
    Symbol fonts?
    This is the year 2024, use utf8.

        Karl


    Am 18.02.2024 um 14:54 schrieb db:
    I am trying to get a ylabel like the LaTeX form $i\sqrt{\tau}$.
    Without the i it's easy, '{/Symbol \326 \164}' but as soon as
    introduce the i it goes haywire.
    How do get that label? I am plotting into postscript enh eps.

    Could you expand on that? What should I do in a gnuplot
    script?

    set ylabel "{/:Italic {i \U+221A \U+0305\U+03C4}}"

    That looks similar to the LaTex output.

    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=C3=B6rg_Buchholz?=@21:1/5 to All on Wed Feb 21 07:13:50 2024
    On 20.02.2024 16:08, db wrote:
    On 20.02.2024 09.01, Jörg Buchholz wrote:
    On 19.02.2024 14:11, db wrote:
    On 18.02.2024 23.00, Karl Ratzsch wrote:
    Symbol fonts?
    This is the year 2024, use utf8.

         Karl


    Am 18.02.2024 um 14:54 schrieb db:
    I am trying to get a ylabel like the LaTeX form $i\sqrt{\tau}$.
    Without the i it's easy, '{/Symbol \326 \164}' but as soon as
    introduce the i it goes haywire.
    How do get that label? I am plotting into postscript enh eps.

    Could you expand on that? What should I do in a gnuplot
    script?

    set ylabel "{/:Italic {i \U+221A \U+0305\U+03C4}}"

    That looks similar to the LaTex output.

    Jörg
    Tried that, no good. I must bemissing something. Here is
    a mini-example

    gnuplot << eoi
    set term postscript enh eps 24
    set output 'mini.eps'
    set xlabel "x"
    #set ylabel '{/Symbol i \326 \164}' norotate  --- no good
    #set ylabel '{i /Symbol \326 \164}' norotate  --- no good
    set ylabel "{/:Italic {i \U+221A \U+0305\U+03C4}}"
    plot x*sqrt(x) w p pt 7
    quit
    eoi
    gv mini.eps

    What am I missing?--
    Dieter Britz

    Use term epscairo instead of eps. The problem is to realise the
    "topline" of the square root. So it can be better only use:
    set ylabel "{/:Italic {i \U+221A \U+03C4}}"

    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=C3=B6rg_Buchholz?=@21:1/5 to All on Thu Feb 22 09:19:06 2024
    On 21.02.2024 13:25, db wrote:
    On 21.02.2024 07.13, Jörg Buchholz wrote:
    On 20.02.2024 16:08, db wrote:
    On 20.02.2024 09.01, Jörg Buchholz wrote:
    On 19.02.2024 14:11, db wrote:
    On 18.02.2024 23.00, Karl Ratzsch wrote:
    Symbol fonts? This is the year 2024, use utf8.

    Karl


    Am 18.02.2024 um 14:54 schrieb db:
    I am trying to get a ylabel like the LaTeX form
    $i\sqrt{\tau}$. Without the i it's easy, '{/Symbol \326
    \164}' but as soon as introduce the i it goes haywire.
    How do get that label? I am plotting into postscript enh
    eps.

    Could you expand on that? What should I do in a gnuplot
    script?

    set ylabel "{/:Italic {i \U+221A \U+0305\U+03C4}}"

    That looks similar to the LaTex output.

    Jörg
    Tried that, no good. I must bemissing something. Here is a
    mini-example

    gnuplot << eoi set term postscript enh eps 24 set output
    'mini.eps' set xlabel "x" #set ylabel '{/Symbol i \326 \164}'
    norotate --- no good #set ylabel '{i /Symbol \326 \164}'
    norotate --- no good set ylabel "{/:Italic {i \U+221A
    \U+0305\U+03C4}}" plot x*sqrt(x) w p pt 7 quit eoi gv mini.eps

    What am I missing?-- Dieter Britz

    Use term epscairo instead of eps. The problem is to realise the
    "topline" of the square root. So it can be better only use: set
    ylabel "{/:Italic {i \U+221A \U+03C4}}"

    Jörg


    That only turns the plot on its side, but still the same garbled y
    label.

    Don't know what the problem on your machine is. Here, tested on WIN10
    and Linux, the following looks good.
    WIN and Linux with gnuplot 5.4.8

    set term epscairo
    set output 'mini.eps'
    set xlabel "x"
    set ylabel "{/:Italic {i \U+221A\U+03C4}}"
    set arrow 1 from screen 0.0145,0.56 rto screen 0.0,0.025 nohead
    plot x*sqrt(x) w p pt 7
    set out


    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Klaus Dahlke@21:1/5 to All on Thu Feb 22 11:14:03 2024
    Tried that, no good. I must bemissing something. Here is a mini-example

    gnuplot << eoi set term postscript enh eps 24 set output 'mini.eps'
    set xlabel "x"
    #set ylabel '{/Symbol i \326 \164}' norotate --- no good #set ylabel
    '{i /Symbol \326 \164}' norotate --- no good set ylabel "{/:Italic {i \U+221A \U+0305\U+03C4}}"
    plot x*sqrt(x) w p pt 7 quit eoi gv mini.eps

    What am I missing?--
    Dieter Britz

    you may have to set explicitly the encoding to utf:
    set encoding utf8

    Best
    Klaus

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?J=C3=B6rg_Buchholz?=@21:1/5 to All on Mon Feb 26 08:57:51 2024
    On 24.02.2024 09:17, db wrote:
    On 22.02.2024 09.19, Jörg Buchholz wrote:
    On 21.02.2024 13:25, db wrote:
    On 21.02.2024 07.13, Jörg Buchholz wrote:
    On 20.02.2024 16:08, db wrote:
    On 20.02.2024 09.01, Jörg Buchholz wrote:
    On 19.02.2024 14:11, db wrote:
    On 18.02.2024 23.00, Karl Ratzsch wrote:
    Symbol fonts? This is the year 2024, use utf8.

    Karl


    Am 18.02.2024 um 14:54 schrieb db:
    I am trying to get a ylabel like the LaTeX form
    $i\sqrt{\tau}$. Without the i it's easy, '{/Symbol \326
    \164}' but as soon as introduce the i it goes haywire.
    How do get that label? I am plotting into postscript enh
    eps.

    Could you expand on that? What should I do in a gnuplot
    script?

    set ylabel "{/:Italic {i \U+221A \U+0305\U+03C4}}"

    That looks similar to the LaTex output.

    Jörg
    Tried that, no good. I must bemissing something. Here is a
    mini-example

    gnuplot << eoi set term postscript enh eps 24 set output
    'mini.eps' set xlabel "x" #set ylabel '{/Symbol i \326 \164}'
    norotate  --- no good #set ylabel '{i /Symbol \326 \164}'
    norotate  --- no good set ylabel "{/:Italic {i \U+221A
    \U+0305\U+03C4}}" plot x*sqrt(x) w p pt 7 quit eoi gv mini.eps

    What am I missing?-- Dieter Britz

    Use term epscairo instead of eps. The problem is to realise the
    "topline" of the square root. So it can be better only use: set
    ylabel "{/:Italic {i \U+221A \U+03C4}}"

    Jörg


    That only turns the plot on its side, but still the same garbled y
    label.

    Don't know what the problem on your machine is. Here, tested on WIN10
    and Linux, the following looks good.
    WIN and Linux with gnuplot 5.4.8

    set term epscairo
    set output 'mini.eps'
    set xlabel "x"
    set ylabel "{/:Italic {i \U+221A\U+03C4}}"
    set arrow 1 from screen 0.0145,0.56 rto screen 0.0,0.025 nohead
    plot x*sqrt(x) w p pt 7
    set out


    Jörg
    That doesn't work either, see the result here
    www.dieterbritz.dk/mini.eps

    Has you include the "set encoding utf8" before the set term?

    set encoding utf8
    set term epscairo
    set output 'mini-utf8.eps'
    set xlabel "x"
    set ylabel "{/:Italic {i \U+221A\U+03C4}}"
    set arrow 1 from screen 0.0145,0.56 rto screen 0.0,0.025 nohead
    plot x*sqrt(x) w p pt 7
    set out



    Is there any way I can use LaTeX notation?

    Yes.

    set ylabel '$i \sqrt{\tau}$'
    set out 'mini-eps.tex'
    set terminal cairolatex eps input
    plot x*sqrt(x) w p pt 7
    set out

    After this you have two files in your directory.
    mini-eps.tex and mini-eps.eps

    you must include the .tex file in your LaTeX file.

    \input{./mini-eps.tex}


    Jörg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)