开发者

Increase font size in octave legend?

Does anyone know how to increas开发者_JAVA技巧e legend font-size in octave?


Not sure if this was a solution when the OP was submitted, but this is pretty easy now:

    h = legend({"foo","bar"});      
    set (h, "fontsize", 16);


This worked for me (kubuntu 9.04, octave 3.2.2)

print("plot.eps","-deps", "-F:30")

This forces all text elements in figure to be printed with font size 30. See also octave function: print.


Based on another Posting on Stackoverflow I found the following solution.

copied_legend = findobj(gcf(),"type","axes","Tag","legend");
set(copied_legend, "FontSize", FontSize);

GNU Octave, version 3.6.3

Matlab: How to obtain all the axes handles in a figure handle?


Get axis object handle and set 'fontsize' property (octave 3.2.4):

ax = gca();
set(ax, 'fontsize', 15);


Try the following:

'{\fontsize{12} legend1-text}'

Where you have to include it for every legend text. My command, that actually worked, was:

legend('{\fontsize{10} Low }', '{\fontsize{10} Medium }', '{\fontsize{10} High }')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜