help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Subplot problem in Octave 4.4.0?


From: Richardson, Anthony
Subject: RE: Subplot problem in Octave 4.4.0?
Date: Sat, 5 May 2018 02:15:14 +0000

> -----Original Message-----
> From: Help-octave [mailto:help-octave-
> address@hidden On Behalf Of Pantxo
> Sent: Friday, May 4, 2018 3:24 PM
> To: address@hidden
> Subject: RE: Subplot problem in Octave 4.4.0?
> 
> Tony Richardson wrote
> > I've tried a few other scripts in which the control panel is in
> > different locations.  It doesn't appear to be due to interaction
> > between a subplot and the control panel.
> > I've found that if I comment out any code that draws to subplot(3, 3,
> > 3) then the other subplots remain visible.  If I redraw subplot(3,3,3)
> > the other subplots will eventually disappear.
> >
> > Tony
> >
> >> -----Original Message-----
> >> From: Help-octave [mailto:help-octave-
> >> bounces+richardson=
> 
> > evansville.edu@
> 
> > ] On Behalf Of Richardson,
> >> Anthony
> >> Sent: Friday, May 4, 2018 1:18 PM
> >> To: Mike Miller <
> 
> > mtmiller@
> 
> > >
> >> Cc:
> 
> > help-octave@
> 
> >> Subject: RE: Subplot problem in Octave 4.4.0?
> >>
> >> Yes, I see the same behavior.  That subplot is the only one above the
> >> "control panel", so maybe there is some strange interaction between
> >> the two (the control panel and the subplot).  I've got a few other
> >> scripts that are behaving the same way under 4.4.0, I'll see if
> >> something similar is going on with them.
> >>
> >> Tony
> >>
> >> > -----Original Message-----
> >> > From: Mike Miller [mailto:
> 
> > mtmiller@
> 
> > ]
> >> > Sent: Friday, May 4, 2018 11:56 AM
> >> > To: Richardson, Anthony <
> 
> > ar63@
> 
> > >
> >> > Cc:
> 
> > help-octave@
> 
> >> > Subject: Re: Subplot problem in Octave 4.4.0?
> >> >
> >> > On Fri, May 04, 2018 at 15:01:12 +0000, Richardson, Anthony wrote:
> >> > > I just tested Octave 4.4.0 under Linux (Ubuntu/flatpak) and the
> >> > > same bug is present - subplots disappear after adjusting the
> >> > > sliders (not necessarily after the first adjustment, but it doesn't 
> >> > > take
> long).
> >> > > Did you test under 4.4.0?  The maximize bug has been present for
> >> > > a while,
> >> > but the disappearing subplots (without window resizing) is new to
> >> 4.4.0.
> >> >
> >> > If it helps narrow things down for you, I have found that it's the
> >> 'hup'
> >> > update that causes the subplots to disappear for me. For me the
> >> > subplots disappear only when the third and fourth sliders are adjusted.
> >> >
> >> > If I comment out the lines that set the 'hup' state to true, so
> >> > that
> >> > subplot(3,3,3) is never redrawn, then no subplots disappear at all.
> >> >
> >> > Do you see the same?
> >> >
> >> > --
> >> > mike
> 
> Indeed with those additional information I was able to reproduce the bug
> which is clearly different than the one related to resize. Here the position 
> of
> the axes is corrupted :
> 
> octave:3> get (findobj (gcf, "type", "axes"), "position") ans = {
>   [1,1] =
> 
>      7.5645e+12   3.2287e+22  -1.5054e+13  -6.4573e+22
> 
>   [2,1] =
> 
>      7.5645e+12   3.2287e+22  -1.5054e+13  -6.4573e+22
>  ...
> 
> As a workaround, I found that avoiding the call to high level "plot"
> function (by changing the properties of the original line object) avoids the
> issue for me. Something like
> 
> ...
>     subplot(3,3,3)
>     persitent h333 = [];
>     tt = t(1:round(L/15))*1000;
>     hh = h(1:round(L/15));
>     if (isempty (h333))
>       plot(tt, hh);
>       grid on;
>       %xlim([0 tplotmax]);
>       xlabel('time (ms)');
>       ylabel('Amplitude');
>       title('Impulse Response');
>     else
>       set (h333, "xdata", tt, "ydata", hh);
>     endif
> ...
> 
> Anyway, Tony, can you file a bug report about this new bug so that the
> discussion can take place there?
> 
> Pantxo
> 
> 
> 
> --
> Sent from: http://octave.1599824.n4.nabble.com/Octave-General-
> f1599825.html
> 

I have filed a bug report.

Tony



reply via email to

[Prev in Thread] Current Thread [Next in Thread]