octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #52621] root graphics object property "current


From: Rik
Subject: [Octave-bug-tracker] [bug #52621] root graphics object property "currentfigure" does not respect figure "handlevisibility" property
Date: Mon, 11 Dec 2017 19:13:14 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #10, bug #52621 (project octave):

Looking at closereq.m, we would need to slow things down and use a for loop in
the m-file if we want to implement things exactly like Matlab.

Currently, the code just collects the figures to process and then runs


  __go_execute_callback__ (figs, "closerequestfcn");


If every figure to be closed should be the gcf then this would need to be
modified to


for fig = figs
  figure (fig{1});  # make figure current
  __go_execute_callback__ (fig{1}, "closerequestfcn");
endfor


Actually, since figure.m is a reasonably complex m-file, we might want to
shorten that up by just using


set (0, "currentfigure", fig{1});




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52621>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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