Mercurial > hg > octave-nkf
comparison scripts/plot/__go_draw_axes__.m @ 9191:ad33527d2e51
Have 'legend' inherit font properties from the parent axis.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 08 May 2009 21:11:05 -0400 |
parents | 22ae6b3411a7 |
children | ab952265ad06 |
comparison
equal
deleted
inserted
replaced
9190:7a10410db2c6 | 9191:ad33527d2e51 |
---|---|
1207 ## Least conflict with data in plot. | 1207 ## Least conflict with data in plot. |
1208 ## Least unused space outside plot. | 1208 ## Least unused space outside plot. |
1209 otherwise | 1209 otherwise |
1210 pos = ""; | 1210 pos = ""; |
1211 endswitch | 1211 endswitch |
1212 fprintf (plot_stream, "set key %s %s %s %s;\n", inout, pos, box, reverse); | 1212 if (__gnuplot_has_feature__ ("key_has_font_properties")) |
1213 fontspec = create_fontspec (axis_obj.fontname, axis_obj.fontsize); | |
1214 else | |
1215 fontspec = ""; | |
1216 endif | |
1217 fprintf (plot_stream, "set key %s %s %s %s %s;\n", inout, pos, box, | |
1218 reverse, fontspec); | |
1213 else | 1219 else |
1214 fputs (plot_stream, "unset key;\n"); | 1220 fputs (plot_stream, "unset key;\n"); |
1215 endif | 1221 endif |
1216 | 1222 |
1217 fputs (plot_stream, "set style data lines;\n"); | 1223 fputs (plot_stream, "set style data lines;\n"); |