不确定这是否是提交 OP 时的解决方案,但现在这很容易:
h = legend({"foo","bar"});
set (h, "fontsize", 16);
Run Code Online (Sandbox Code Playgroud)
小智 4
这对我有用(kubuntu 9.04,八度3.2.2)
print("plot.eps","-deps", "-F:30")
Run Code Online (Sandbox Code Playgroud)
这会强制图中的所有文本元素以字体大小 30 打印。另请参见八度函数: print。