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: Dmitri A. Sergatskov
Subject: Re: how to put square root in the plotting
Date: Wed, 10 Jun 2015 08:23:01 -0500

​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.

Attachment: sqrtx.png
Description: PNG image


reply via email to

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