八度/Windows:显示的图元中的变音符号,但未保存为图像 [英] Octave/Windows: umlauts in plots displayed but not saved as image
问题描述
我在Windows下使用八度3.8.2(带有gnuplot).我想在绘图的轴标签中写特殊字符".图中显示了变音符号ä"和特殊字符µ,但未通过打印将其保存到图像文件中.在某种程度上,我可以使用TeX命令:'\ mu'而不是'µ',但是对于变音符号'\'a'而不是'ä'不起作用.
I use octave 3.8.2 (with gnuplot) under Windows. I want to write "special character" in the axis labels of plots. The umlaut 'ä' and special character µ are displayed in the figure but not saved to the image file using print. Partly, I can use the TeX command: '\mu' instead of 'µ' but for umlauts '\"a' instead of 'ä' does not work.
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');
推荐答案
在Windows上使用带有qt图形工具包的Octave 5.1并对其进行latin1编码现在终于可以工作了!
Using Octave 5.1 on Windows with the qt graphics toolkit and latin1-coding it does now finally work!
graphics_toolkit("qt");
x=1:10;
plot(x, x);
title('Ä Ö Ü');
xlabel('H_2 in µm');
ylabel('Percent in %');
[![enter image description here][1]][1]print("test_umlaute.png");
其他组合(例如UTF8和其他图形工具包)不起作用.
Other combiations like UTF8 and and other graphics toolkit do not work.
这篇关于八度/Windows:显示的图元中的变音符号,但未保存为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!