# HG changeset patch # User Konstantinos Poulios # Date 1339141254 -7200 # Node ID 3ddb62bd67c5ca6e56f31711242c52cc5cbf3d99 # Parent 955a9f63a35eef13f86917f269e33a00a0ae0238 legend.m: Inherit font size from axes. diff --git a/scripts/plot/legend.m b/scripts/plot/legend.m --- 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