Discussion:
Label problem
(too old to reply)
db
2024-02-18 13:54:41 UTC
Permalink
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.
--
Dieter Britz
Karl Ratzsch
2024-02-18 22:00:42 UTC
Permalink
Symbol fonts?
This is the year 2024, use utf8.

Karl
Post by 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.
db
2024-02-19 13:11:10 UTC
Permalink
Post by Karl Ratzsch
Symbol fonts?
This is the year 2024, use utf8.
   Karl
Post by 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?
--
Dieter Britz
Jörg Buchholz
2024-02-20 08:01:16 UTC
Permalink
Post by db
Post by Karl Ratzsch
Symbol fonts?
This is the year 2024, use utf8.
    Karl
Post by 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
db
2024-02-20 15:08:13 UTC
Permalink
Post by Jörg Buchholz
Post by db
Post by Karl Ratzsch
Symbol fonts?
This is the year 2024, use utf8.
    Karl
Post by 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
Jörg Buchholz
2024-02-21 06:13:50 UTC
Permalink
Post by db
Post by Jörg Buchholz
Post by db
Post by Karl Ratzsch
Symbol fonts?
This is the year 2024, use utf8.
     Karl
Post by 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
db
2024-02-21 12:25:25 UTC
Permalink
Post by Jörg Buchholz
Post by db
Post by Jörg Buchholz
Post by db
Post by Karl Ratzsch
Symbol fonts?
This is the year 2024, use utf8.
     Karl
Post by 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
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.
--
Dieter Britz
Jörg Buchholz
2024-02-22 08:19:06 UTC
Permalink
Post by Jörg Buchholz
Post by Jörg Buchholz
Post by db
Symbol fonts? This is the year 2024, use utf8.
Karl
Post by 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
db
2024-02-24 08:17:30 UTC
Permalink
Post by Jörg Buchholz
Post by Jörg Buchholz
Post by Jörg Buchholz
Post by db
Symbol fonts? This is the year 2024, use utf8.
Karl
Post by 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

Is there any way I can use LaTeX notation?
--
Dieter Britz
db
2024-02-24 15:55:35 UTC
Permalink
Post by db
Post by Jörg Buchholz
Post by Jörg Buchholz
Post by Jörg Buchholz
Post by db
Symbol fonts? This is the year 2024, use utf8.
Karl
Post by 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
Is there any way I can use LaTeX notation?
That might have been a can of worms. I found a solution
though, e.g.

set label '{/Times-Roman i}' at -1,0.28
set label '{/Symbol \326 \164}' at -0.8,0.28

with a bit of fiddling to get them in the right place.
Not elegant but it works.
--
Dieter Britz
Jörg Buchholz
2024-02-26 07:57:51 UTC
Permalink
Post by db
Post by Jörg Buchholz
Post by Jörg Buchholz
Post by Jörg Buchholz
Post by db
Symbol fonts? This is the year 2024, use utf8.
Karl
Post by 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
Post by db
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

Klaus Dahlke
2024-02-22 11:14:03 UTC
Permalink
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
Loading...