[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave does not close figures properly
From: |
Ben Abbott |
Subject: |
Re: Octave does not close figures properly |
Date: |
Wed, 21 Nov 2012 09:31:49 -0500 |
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