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

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

[Octave-bug-tracker] [bug #51452] ginput returns empty array when figure


From: Rik
Subject: [Octave-bug-tracker] [bug #51452] ginput returns empty array when figure is in select / plotedit mode
Date: Thu, 20 Jul 2017 11:34:30 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #8, bug #51452 (project octave):

Matlab is being dopey here.  In terms of the philosophy of UI design, I should
not expect that there would be side effects from calling ginput.  It would be
more intuitive if ginput were to save the current graphics settings, execute,
and then restore the settings.  I see no need to slavishly copy Matlab in this
regard.

At least for the FLTK toolkit this may not be hard to implement.  The menu
options are already implemented as uimenus if we want to disable them.  And
the actual zoom, pan, rotate values are stored in hidden properties on the
figure (__rotate_mode__, __pan_mode__, __zoom_mode__).  The ginput.m script
already uses an unwind_protect block to restore some settings after
completion.  It should be dead simple to store and retrieve these values.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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