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

View: New views
4 Messages — Rating Filter:   Alert me  

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

by emil Karlson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

Best regards
-Emil Karlson
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

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

by Thomas Weber-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

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

by Shaun Jackman-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave

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

by Michael Goffioul-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jul 4, 2008 at 1:14 AM, Shaun Jackman <sjackman@...> wrote:
> Is it possible to set "visible", "off" as the default for all further figures?

set(0, 'defaultfigurevisible', 'off');

Michael.
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www.cae.wisc.edu/mailman/listinfo/help-octave
LightInTheBox - Buy quality products at wholesale price