[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57260] scatter plot legend different from pre
From: |
Pantxo Diribarne |
Subject: |
[Octave-bug-tracker] [bug #57260] scatter plot legend different from previous releases |
Date: |
Sat, 23 Nov 2019 07:59:00 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 |
Follow-up Comment #1, bug #57260 (project octave):
I would like to have a more robust way to determine how to handle legend item
for special and/or compound hgroup objects in Octave.
For example we could define hidden hggroup properties
"__create_legend_item_fcn__" and "__update_legend_item_fcn__". It would then
be the responsability of scatter.m, stem.m, ..., to populate these properties
so that legend doesn't have to know anything about the object it is labeling.
The prototype of those functions could be:
hitem = __create_legend_item_fcn__ (h_hggroup_obj)
## Create necessary item objects. Add listeners to target
## h_hggroup_obj object. Return a handle to an hitem objects.
endfunction
and
__update_legend_item_fcn__ (hitem, [x0, x1, y0, y1])
## Handle the position of the existing hitem object based on
## the coordinates of a rectangular region.
endfunction
Thoughts?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57260>
_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/