help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to put square root in the plotting


From: john wang
Subject: Re: how to put square root in the plotting
Date: Wed, 10 Jun 2015 08:51:36 -0700

Dmitri , how do you put char ​√ ​ inline, the special char cannot be typed from  the regular keyboard.

JokerOne, I tried gnuplot enhanced text mode, I can get the squre root, but the squre root doesn't have  the hyphen line in  the generated plotting,
it doesn't look pretty.

Wang


On Wed, Jun 10, 2015 at 6:23 AM, Dmitri A. Sergatskov <address@hidden> wrote:
​if it is just simple text, you can just put char ​
​ inline and it
will "just work" with any modern gnuplot terminal (wxt, qt, pdfcairo, pngcairo, epscairo).
E.g.:
 x=linspace(0,100,101);
 y=sqrt(x);
 plot(x,y)
 text(30,7, "y = √x")
 title("y = √x")
 # Or
 #print("sqrtx.pdf","-dpdfcairo","-FCambria:18")
 print("sqrtx.png","-dpngcairo","-FCambria:18")

Should produce the attached file.

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



reply via email to

[Prev in Thread] Current Thread [Next in Thread]