Mercurial > hg > octave-nkf
diff scripts/plot/legend.m @ 14746:3ddb62bd67c5
legend.m: Inherit font size from axes.
author | Konstantinos Poulios <logari81@gmail.com> |
---|---|
date | Fri, 08 Jun 2012 09:40:54 +0200 |
parents | fd6e50e2eee6 |
children | daad312c8af0 |
line wrap: on
line diff
--- a/scripts/plot/legend.m +++ b/scripts/plot/legend.m @@ -510,7 +510,8 @@ "xticklabel", "", "yticklabel", "", "zticklabel", "", "xlim", [0, 1], "ylim", [0, 1], "visible", ifelse (strcmp (box, "on"), "on", "off"), - "activepositionproperty", "position"); + "activepositionproperty", "position", + "fontsize", ca_fontsize); else addprops = false; axes (hlegend); @@ -525,11 +526,13 @@ if (strcmp (textpos, "right")) texthandle = [texthandle, text(0, 0, text_strings {k}, "horizontalalignment", "left", - "userdata", hplots(k))]; + "userdata", hplots(k), + "fontsize", ca_fontsize)]; else texthandle = [texthandle, text(0, 0, text_strings {k}, "horizontalalignment", "right", - "userdata", hplots(k))]; + "userdata", hplots(k), + "fontsize", ca_fontsize)]; endif units = get (texthandle (end), "units"); unwind_protect