How do I plot to file only on octave-3 (ie. no X11)

Thomas Weber thomas.weber.mail at gmail.com
Thu Jul 3 15:41:20 CDT 2008


On 03/07/08 13:29 +0300, emil Karlson wrote:
> Good evening
> 
> I was  wondering is it possible to plot to file only on octave-3, or
> plot to NULL and then print as usual.
> 
> On octave-2 this was easy with gset terminal ps and such.
> 
> This is relevant because:
> 1) I may want multiple plots for animations.
> 2) I may want to work over ssh and X is very slow in these situations.

As this comes up once in a while, I've added it to the FAQ on the wiki:

	figure(1, "visible", "off");
	plot(sin(1:100));
	print -deps "/tmp/sin.eps"

http://wiki.octave.org/wiki.pl?CategoryFAQ

	Thomas


More information about the Help-octave mailing list