Mercurial > hg > octave-nkf
diff scripts/plot/legend.m @ 14581:7d11812c52aa
Properly set the legend's text color property to the legend's "textcolor"
property value. (Bug # 36136)
legend.m (updatelegendtext): Set the "color" of the text to that specified by
the "textcolor" property.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 27 Apr 2012 22:22:31 -0400 |
parents | 721442e1b82c |
children | c38a253723d3 |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -819,9 +819,7 @@ text_kids = findobj (kids, "-property", "interpreter", "type", "text"); interpreter = get (h, "interpreter"); textcolor = get (h, "textcolor"); - set (kids, "interpreter", interpreter, "color", textcolor); - hobj = cell2mat (get (kids, "userdata")); - set (hobj, "interpreter", interpreter); + set (text_kids, "interpreter", interpreter, "color", textcolor); endfunction function hideshowlegend (h, d, ca, pos1, pos2)