[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31254] recursion limit exceeded with defaulta
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #31254] recursion limit exceeded with defaultaxescreatefcn |
Date: |
Wed, 09 Oct 2013 01:52:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 |
Follow-up Comment #1, bug #31254 (project octave):
Is it possible that the code is in error, rather than Octave? The problem
appears to be that using 'gca' within the callback function for
'defaultaxescreatefcn' causes infinite recursion.
I was looking at a Matlab example of a callback function and they specifically
use 'gcbo' to get the handle of the object currently executing the callback.
If I make that substitution the code works properly.
fcn = @(varargin) set (get (gcbo (), 'ylabel'), 'rotation', 0,
'horizontalalignment', 'right');
set (0, 'defaultaxescreatefcn', fcn);
ylabel (gca, 'y')
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31254>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31254] recursion limit exceeded with defaultaxescreatefcn,
Rik <=