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

Maths symbols

84 views
Skip to first unread message

db

unread,
Jan 17, 2023, 11:04:40 AM1/17/23
to
What is the best way to get maths symbols in gnuplot? I currently
want the square root symbol. \sqrt{..} doesn't work.
--
Dieter Britz

Hans-Bernhard Bröker

unread,
Jan 17, 2023, 3:01:52 PM1/17/23
to
Am 17.01.2023 um 17:04 schrieb db:
> What is the best way to get maths symbols in gnuplot? I currently
> want the square root symbol. \sqrt{..} doesn't work.

There cannot be a single "best" way like that. The variety of output
formats is a good deal to big for that.

\sqrt could work just fine if your output is TeX-based. Other formats
may fare better with literal sqrt characters in the command, e.g. using
UTF-8 input and text storage methods.

Jörg Buchholz

unread,
Jan 18, 2023, 1:16:50 AM1/18/23
to
from gnuplot 5.4 up you can use the direct unicode input.

<https://gnuplot.sourceforge.net/demo_5.4/unicode.html>

set label '\U+221A'

Jörg

db

unread,
Jan 25, 2023, 8:50:41 AM1/25/23
to
On 17.01.2023 17.04, db wrote:
> What is the best way to get maths symbols in gnuplot? I currently
> want the square root symbol. \sqrt{..} doesn't work.

After some fiddling I arrived at this:

set xlabel '{/Symbol=32 1/\326 T}'

It sort of works but can I get the T closer in under the sqrt?
I.e. is there a negative spacer, like \! in laTeX?
--
Dieter Britz

Jörg Buchholz

unread,
Jan 26, 2023, 1:20:48 AM1/26/23
to
put the T in {}

set xlabel '{/Symbol=32 1/\326{T}}'

Jörg

db

unread,
Jan 27, 2023, 7:05:28 AM1/27/23
to
Thank you!

--
Dieter Britz

0 new messages