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

Shaun Jackman sjackman at bcgsc.ca
Thu Jul 3 18:14:51 CDT 2008


Thomas Weber wrote:
> 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

Is it possible to set "visible", "off" as the default for all further figures?

Cheers,
Shaun



More information about the Help-octave mailing list