Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -1043,6 +1043,9 @@ lprops = {"interpreter", "fontunits", "fontangle", "fontname", "fontsize",... "fontweight", "textcolor"}; set (htext, tprops, get (h, lprops)); + + ec = get (h, "edgecolor"); + set (h, "xcolor", ec, "ycolor", ec); endfunction function hideshowlegend (h, ~, ca, pos1, pos2)