我在Windows下使用octave 3.8.2(带有gnuplot)。我想在绘图的轴标签中写入“特殊字符”。变音符号“ä”和特殊字符 µ 显示在图中,但不会使用打印保存到图像文件中。部分地,我可以使用 TeX 命令:'\mu' 代替 'µ',但对于变音符号 '\"a' 代替 'ä' 不起作用。
plot(1:10);
%set (findall (gcf (), "-property", "interpreter"), "interpreter", "TeX") % does not work
xlabel('Länge in µm');
ylabel('Breite in \mum');
print('umlaute.jpg', '-djpeg');
graphics_toolkit("gnuplot")
and pngcairo
or pdfcairo
产生更好的输出。
graphics_toolkit("gnuplot")
plot(1:10)
xlabel('Länge in µm')
ylabel('Breite in \mum')
print('umlaute.png', '-dpngcairo') # or
# print('umlaute.pdf', '-dpdfcairo')
With octave 3.8.2 under linux, the ouput is
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)