[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42285] linkprop doesn't always work with axes
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #42285] linkprop doesn't always work with axes limits |
Date: |
Fri, 30 May 2014 10:08:16 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 |
Follow-up Comment #6, bug #42285 (project octave):
What about adding an argument to addlistener? This argument could be a list of
handles of objects that are necessary for the listener function to work.
Then addlistener could feed the deletfcn callback list of those objects with
the appropriate dellistener function. Not sure my explanation is clear so here
is an example in which changing the linewidth of the axes would change the
linewidth of its line children:
ax = axes ();
li = line (1:10, 1:10);
update_width = @(h, dummy, hline) set (hline, "linewidth", get (h,
"linewidth"));
addlistener (ax, "linewidth", address@hidden, li}, li) ## note the fourth
argument
The fourth argument simply adds "dellistener (ax, "linewidth", address@hidden,
li})" to li's deletefcn callback list.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42285>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/