# HG changeset patch # User Ben Abbott # Date 1297212403 18000 # Node ID 9b3e17b892b4ba793162c216241ab05215e3574c # Parent 2c31574f5fe8282a7a2d874aa9e935709671d0d4 __go_draw_axes__.m: Properly set fontspec for legends. diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2011-02-08 Ben Abbott + + * plot/__go_draw_axes__.m: Properly set fontspec for legends. + 2011-02-05 David Bateman * plot/legend.m: Allow the location and orientation to be set without diff --git a/scripts/plot/__go_draw_axes__.m b/scripts/plot/__go_draw_axes__.m --- a/scripts/plot/__go_draw_axes__.m +++ b/scripts/plot/__go_draw_axes__.m @@ -1472,7 +1472,7 @@ pos = ""; endswitch if (__gnuplot_has_feature__ ("key_has_font_properties")) - [fontname, fontsize] = get_fontname_and_size (obj); + [fontname, fontsize] = get_fontname_and_size (hlgnd); fontspec = create_fontspec (fontname, fontsize, gnuplot_term); else fontspec = "";