help-octave
[Top][All Lists]
Advanced

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

Re: Greek in plot text?


From: Geordie McBain
Subject: Re: Greek in plot text?
Date: Mon, 21 May 2007 10:22:56 +1000

On Fri, 2007-05-18 at 11:06 -0400, G. Huang wrote:
> Is there a way to label the axis or legend with some Greek letters when 
> using plot(), or an alternative to plot()?

I find it easier to save the data to file and then generate the graphs
in gnuplot directly, using the epslatex terminal; this lets you use
arbitrary LaTeX mathematical formulae.  

You can do it in Octave though, accessing gnuplot's enhanced postscript
terminal indirectly; for example:

octave-2.9.10+:1> x = linspace (0, 1, 101);
octave-2.9.10+:2> plot (x, sin (2*pi*x), ";sin 2{/Symbol
p}{/Times-Italic x};")
octave-2.9.10+:3> print ("my.eps")

This works for the EPS file, but does display on the screen as the raw
input string.


Send instant messages to your online friends http://au.messenger.yahoo.com 


reply via email to

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