Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Label problem

34 views
Skip to first unread message

db

unread,
Feb 18, 2024, 8:54:44 AMFeb 18
to
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

unread,
Feb 18, 2024, 5:00:46 PMFeb 18
to
Symbol fonts?
This is the year 2024, use utf8.

Karl

db

unread,
Feb 19, 2024, 8:11:12 AMFeb 19
to
Could you expand on that? What should I do in a gnuplot
script?
--
Dieter Britz

Hans-Bernhard Bröker

unread,
Feb 19, 2024, 2:32:28 PMFeb 19
to
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.

You forgot to show _how_ you added that 'i'.

Nor is "goes haywire" a very enlightening description of the result.

Jörg Buchholz

unread,
Feb 20, 2024, 3:01:19 AMFeb 20
to
set ylabel "{/:Italic {i \U+221A \U+0305\U+03C4}}"

That looks similar to the LaTex output.

Jörg

db

unread,
Feb 20, 2024, 4:42:36 AMFeb 20
to
I tried in several different places, among them
'{i /Symbol \326 \164}', but I didn't want to show them all.
"Haywire" obviously means that the result is garble. I
think that was clear enough.
But I now have the help I was after.
--
Dieter Britz

db

unread,
Feb 20, 2024, 10:08:16 AMFeb 20
to
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

unread,
Feb 21, 2024, 1:13:53 AMFeb 21
to
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

unread,
Feb 21, 2024, 7:25:28 AMFeb 21
to
That only turns the plot on its side, but still the same
garbled y label.
--
Dieter Britz

Jörg Buchholz

unread,
Feb 22, 2024, 3:19:07 AMFeb 22
to
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

Klaus Dahlke

unread,
Feb 22, 2024, 6:14:06 AMFeb 22
to

> 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
0 new messages