开发者

Increase font size in octave legend?

开发者 https://www.devze.com 2022-12-08 10:55 出处:网络
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:

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

精彩评论

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