changeset 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 e97ec01d4157
files scripts/plot/legend.m
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/legend.m	Fri Apr 27 13:11:19 2012 -0400
+++ b/scripts/plot/legend.m	Fri Apr 27 22:22:31 2012 -0400
@@ -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)