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

Square root symbol in labels?

6,540 views
Skip to first unread message

Oliver Götze

unread,
May 12, 2011, 9:38:45 AM5/12/11
to
Hello,
is there a way (or a terminal [iam using postscript eps enhanced
color]) which allows to display the square root symbol? I have some
plots i have to label with this symbol but do not whant to use:
"(x)^1/2" or "sqrt(x)".

Is there a way to use the symbol insteat?

Christoph Bersch

unread,
May 12, 2011, 10:22:18 AM5/12/11
to
Hi,

The only way that I am aware of without using any LaTeX-based terminal
is to use the Unicode character SQUARE ROOT (U+221A)

set terminal pdfcairo enhanced
set encoding utf8
set ylabel '√x'
set output 'test.pdf'
plot sin(x)

or with the Symbol font (see ps_guide.ps):

set terminal postscript eps enhanced
set ylabel '{/Symbol \326}x'
set output 'test.eps'
plot sin(x)


With a LaTeX-based terminal you could do

set terminal epslatex standalone
set ylabel '$\sqrt{x}$'
set output 'test.tex'
plot sin(x)

latex test.tex && dvips test.dvi && ps2pdf test.ps

Christoph

Oliver Götze

unread,
May 12, 2011, 10:28:52 AM5/12/11
to
Thanks i will try the non latex based terminal variants, because i
already used the latex terminal (just for the square root) but it is
totally not practical.
0 new messages