[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56470] Open figures do not raise closing even
From: |
Deyan |
Subject: |
[Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed |
Date: |
Tue, 11 Jun 2019 03:27:19 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0 |
URL:
<https://savannah.gnu.org/bugs/?56470>
Summary: Open figures do not raise closing event when [X] is
pressed
Project: GNU Octave
Submitted by: dvd_video
Submitted on: Tue 11 Jun 2019 07:27:17 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Deyan
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
Hello,
Consider my Matlab University project for data processing control which is an
MP3 player with different plotters, FFT, `audioplayer` manipulation and
playlist located here:
https://github.com/dvdvideo1234/MP3Toolbox
In the code, I am using the following:
```matlab
function fig = getNextFigure()
% Returns the top free figure handle to be opened
if(isempty(get(0,'CurrentFigure')))
fig = 1;
else
fig = max(get(0,'Children')) + 1;
end
end
fig = getNextFigure(); % Maximum figure ID and increment it
while( <some_condition_here> )
figure(fig)
if(~ishandle(fig))
break;
else
<what_the_loop_does>;
end
end
```
In Octave, the opened figure hangs and it does not draw in real-time. The
figure only draws the first plot and then the window needs to be moved for it
to draw the next plot. The figure window cannot be closed. When closed, the
figure must trigger `~ishandle(fig)` and disappear afterward while braking the
loop. Instead, it cannot be closed and rather floods itself up. It can only be
stopped by flooding the command window with left clicks to change OS active
window and flood `^C`. The figure is refreshed every time an OS active window
is selected in the taskbar ( Tried with windows explorer. Click-flooding the
windows explorer in the taskbar gives slow and promising result, however, the
figure is destroyed after a couple of times. )
In Matlab, the figure opens normally and the subplots are updated accordingly.
The graph runs smoothly and it does not hang at all. The figure can be closed,
the loop is broken and the figure returns the control to the command window of
the MP3 player.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 11 Jun 2019 07:27:17 AM UTC Name: octave-1.JPG Size: 173KiB By:
dvd_video
Thy to hit the [X] to close the figure.
<http://savannah.gnu.org/bugs/download.php?file_id=47067>
-------------------------------------------------------
Date: Tue 11 Jun 2019 07:27:17 AM UTC Name: octave-2.JPG Size: 197KiB By:
dvd_video
Thy to hit the [X] to close the figure.
<http://savannah.gnu.org/bugs/download.php?file_id=47068>
-------------------------------------------------------
Date: Tue 11 Jun 2019 07:27:17 AM UTC Name: octave-3.jpg Size: 257KiB By:
dvd_video
Thy to hit the [X] to close the figure.
<http://savannah.gnu.org/bugs/download.php?file_id=47069>
-------------------------------------------------------
Date: Tue 11 Jun 2019 07:27:17 AM UTC Name: octave-4.JPG Size: 123KiB By:
dvd_video
Thy to hit the [X] to close the figure.
<http://savannah.gnu.org/bugs/download.php?file_id=47070>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56470>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed,
Deyan <=
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed, Pantxo Diribarne, 2019/06/11
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed, Pantxo Diribarne, 2019/06/11
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed, Deyan, 2019/06/12
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed, Pantxo Diribarne, 2019/06/12
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed, Deyan, 2019/06/12
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed, Pantxo Diribarne, 2019/06/12
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed, Deyan, 2019/06/13
- [Octave-bug-tracker] [bug #56470] Open figures do not raise closing event when [X] is pressed, Pantxo Diribarne, 2019/06/13