# HG changeset patch # User Ben Abbott # Date 1223552554 14400 # Node ID 5bf8a57f85d5910d0468df0ba14730090a02ae5b # Parent 963f94ba4e2a998eb34b82451b4b879badfdc3dd __axis_label__.m: Inherit font properties from axes. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-10-09 Ben Abbott + + * plot/__axis_label__.m: Inherit font properties from axes. + 2008-10-08 John W. Eaton * miscellaneous/fileparts.m: Handle "/file" properly. diff --git a/scripts/plot/__axis_label__.m b/scripts/plot/__axis_label__.m --- a/scripts/plot/__axis_label__.m +++ b/scripts/plot/__axis_label__.m @@ -31,8 +31,12 @@ else rot = 0; endif - - h = __go_text__ (ca, "string", txt, "rotation", rot, varargin{:}); + h = __go_text__ (ca, "fontangle", get (ca, "fontangle"), + "fontname", get (ca, "fontname"), + "fontsize", get (ca, "fontsize"), + "fontunits", get (ca, "fontunits"), + "fontweight", get (ca, "fontweight"), + "string", txt, "rotation", rot, varargin{:}); set (ca, caller, h); if (nargout > 0) retval = h;