comparison scripts/plot/legend.m @ 17535:5eae41c8c07f

legend.m: Add support for "edgecolor" property. * scripts/plot/legend.m: Set legend axes "xcolor", "ycolor" based on "edgecolor" property.
author Rik <rik@octave.org>
date Tue, 01 Oct 2013 18:02:23 -0700
parents ec105d91547e
children 8a186cd5b9a6
comparison
equal deleted inserted replaced
17534:ec105d91547e 17535:5eae41c8c07f
1041 tprops = {"interpreter", "fontunits", "fontangle", "fontname", "fontsize",... 1041 tprops = {"interpreter", "fontunits", "fontangle", "fontname", "fontsize",...
1042 "fontweight", "color"}; 1042 "fontweight", "color"};
1043 lprops = {"interpreter", "fontunits", "fontangle", "fontname", "fontsize",... 1043 lprops = {"interpreter", "fontunits", "fontangle", "fontname", "fontsize",...
1044 "fontweight", "textcolor"}; 1044 "fontweight", "textcolor"};
1045 set (htext, tprops, get (h, lprops)); 1045 set (htext, tprops, get (h, lprops));
1046
1047 ec = get (h, "edgecolor");
1048 set (h, "xcolor", ec, "ycolor", ec);
1046 endfunction 1049 endfunction
1047 1050
1048 function hideshowlegend (h, ~, ca, pos1, pos2) 1051 function hideshowlegend (h, ~, ca, pos1, pos2)
1049 isvisible = strcmp (get (h, "visible"), "off"); 1052 isvisible = strcmp (get (h, "visible"), "off");
1050 if (! isvisible) 1053 if (! isvisible)