Saving plots with no X display

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Saving plots with no X display

Dave.Haddon
Hi all,

  I am trying to do come plotting on a machine that is 4000km, 2 VPNs and 3
computers on 2 operating systems away..  i.e I have only a text interface.

I would like to process some large amounts data, produce a plot on the
remote machine and save the output png with print().

As I have no X display, I cannot get gnuplot to run.

Any ideas???

Thanks in advance..

--

David Haddon

Software Engineer
Automated Systems Laboratory
ICT Centre - CSIRO


_______________________________________________
Help-octave mailing list
[hidden email]
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Saving plots with no X display

Judd Storrs-2
On Sun, Apr 18, 2010 at 10:43 PM,  <[hidden email]> wrote:
> As I have no X display, I cannot get gnuplot to run.
>
> Any ideas???

There may be something better specifically for gnuplot and octave, but
I've used xvfb-run for similar problems.


--judd
_______________________________________________
Help-octave mailing list
[hidden email]
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Saving plots with no X display

Søren Hauberg
In reply to this post by Dave.Haddon
man, 19 04 2010 kl. 12:43 +1000, skrev [hidden email]:
>   I am trying to do come plotting on a machine that is 4000km, 2 VPNs and 3
> computers on 2 operating systems away..  i.e I have only a text interface.
>
> I would like to process some large amounts data, produce a plot on the
> remote machine and save the output png with print().
>
> As I have no X display, I cannot get gnuplot to run.

Can you do something like

        figure ("visible", "off")
        plot (1:10)
        print test.png

?

Søren

_______________________________________________
Help-octave mailing list
[hidden email]
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Saving plots with no X display

Dave.Haddon
Søren,

 Thanks for the quick reply.. Yep that works... I still get an error about the X11 variable not being set, but the plot is saved..

Thankyou


On 19/4/10 1:16 PM, "Søren Hauberg" <[hidden email]> wrote:

man, 19 04 2010 kl. 12:43 +1000, skrev [hidden email]:
>   I am trying to do come plotting on a machine that is 4000km, 2 VPNs and 3
> computers on 2 operating systems away..  i.e I have only a text interface.
>
> I would like to process some large amounts data, produce a plot on the
> remote machine and save the output png with print().
>
> As I have no X display, I cannot get gnuplot to run.

Can you do something like

        figure ("visible", "off")
        plot (1:10)
        print test.png

?

Søren




_______________________________________________
Help-octave mailing list
[hidden email]
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Saving plots with no X display

Aaron Webster
In reply to this post by Dave.Haddon
Old thread, but for posterity's sake I thought I'd give the answer.

To get rid of the X warnings, run octave with the --disable-window-system flag, e.g.

octave --disable-window-system myscript.m
Reply | Threaded
Open this post in threaded view
|

Re: Saving plots with no X display

Aaron Webster
Sorry!  I mistyped.  It would be --no-window-system.
Reply | Threaded
Open this post in threaded view
|

Re: Saving plots with no X display

Francesco Potortì
>Sorry!  I mistyped.  It would be --no-window-system.

Thanks!  

--
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave