Octave does not close figures properly

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

Octave does not close figures properly

Fury kerry
Hi,

When draw a lot of figures and close them (click the windows control- "x" button) , Octave does not end the corresponding "gnuplot" and "gnuplot_x11" process. As a result, after a series of drawing and close the figures, Octave end up with the following error:

Maximum number of clients reached
gnuplot: unable to open display ':0'                                                                                                                                               
gnuplot: X11 aborted.                                                                                                                                                         I

Command "ps aux | grep gnuplot" shows a lot of "gnuplot" and "gnuplot_x11" processes in interruptible sleep states ("S+")

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
fury      3769  0.0  0.0   6156  1560 pts/3    S+   10:18   0:00 gnuplot_x11
fury      3770  0.0  0.1  27964  6112 pts/3    S+   10:18   0:00 gnuplot
fury      3771  0.0  0.0   6156  1556 pts/3    S+   10:18   0:00 gnuplot_x11
fury      3772  0.0  0.1  27964  6148 pts/3    S+   10:19   0:00 gnuplot

...
...

My system configuration:
Octave 3.6.2
Ubuntu 12.10
KDE 4.9.3
gnuplot 4.6.0

Zhen

--
Please consider the environment before you print this mail
Zhen Zhang
Zhejiang University
Yuquan Campus
[hidden email]

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

Re: Octave does not close figures properly

bpabbott
Administrator
On Nov 20, 2012, at 11:29 PM, Fury kerry wrote:

> Hi,
>
> When draw a lot of figures and close them (click the windows control- "x" button) , Octave does not end the corresponding "gnuplot" and "gnuplot_x11" process. As a result, after a series of drawing and close the figures, Octave end up with the following error:
>
> Maximum number of clients reached
> gnuplot: unable to open display ':0'                                                                                                                                                
> gnuplot: X11 aborted.                                                                                                                                                         I
>
> Command "ps aux | grep gnuplot" shows a lot of "gnuplot" and "gnuplot_x11" processes in interruptible sleep states ("S+")
>
> USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
> fury      3769  0.0  0.0   6156  1560 pts/3    S+   10:18   0:00 gnuplot_x11
> fury      3770  0.0  0.1  27964  6112 pts/3    S+   10:18   0:00 gnuplot
> fury      3771  0.0  0.0   6156  1556 pts/3    S+   10:18   0:00 gnuplot_x11
> fury      3772  0.0  0.1  27964  6148 pts/3    S+   10:19   0:00 gnuplot
>
> ...
> ...
>
> My system configuration:
> Octave 3.6.2
> Ubuntu 12.10
> KDE 4.9.3
> gnuplot 4.6.0
>
> Zhen

The communication between Gnuplot and Octave is in one direction only.   There is no mechanism by which Gnuplot can tell Octave when a window is closed.

If that functionality is needed, please try the fltk graphics toolkit.

        close all
        graphics_toolkit fltk
        plot (rand (3))
       
Ben


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

Re: Octave does not close figures properly

Pablo


On 11/21/2012 11:31 AM, Ben Abbott wrote:

> On Nov 20, 2012, at 11:29 PM, Fury kerry wrote:
>
>> Hi,
>>
>> When draw a lot of figures and close them (click the windows control- "x" button) , Octave does not end the corresponding "gnuplot" and "gnuplot_x11" process. As a result, after a series of drawing and close the figures, Octave end up with the following error:
>>
>> Maximum number of clients reached
>> gnuplot: unable to open display ':0'
>> gnuplot: X11 aborted.                                                                                                                                                         I
>>

Just "close all" will allow you to create more figures using gnuplot, if
you prefer it over fltk.


   Arnoques
_______________________________________________
Help-octave mailing list
[hidden email]
https://mailman.cae.wisc.edu/listinfo/help-octave