EDA365电子论坛网
标题:
请教大神这个如何操作?
[打印本页]
作者:
panphp
时间:
2020-5-25 14:05
标题:
请教大神这个如何操作?
& _; y' ` e6 M4 Y8 n; W
如何在y轴标注上同时显示中文和带有上划线的英文?请教大神,非常感谢!
) }, H% N" R7 [+ E1 u7 T
1.jpg
(8.9 KB, 下载次数: 10)
下载附件
保存到相册
2020-5-25 14:04 上传
% @' D. w4 c9 f! @$ K# i
作者:
updown
时间:
2020-5-25 14:42
不知道latex怎么显示中文,暂时想到可以用text来指定中文字母:yh = ylabel("$\overline{I_{lovematlab}}$", "Interpreter", "latex"); p = yh.Position; th = text(p(1)-yh.Extent(3)/2, p(2)-yh.Extent(4)/2, "我喜欢MATLAB,", 'Rotation',90); th.Position = th.Position(1:2) - [0 th.Extent(4)];
作者:
House
时间:
2020-5-25 14:43
% n: Z$ A, L- L% V/ J* I& K# L
可以用text来指定中文字母:
^6 O- C9 b# @" l, y7 w
yh = ylabel("$\overline{I_{lovematlab}}$", "Interpreter", "latex");
) ~/ I M7 W) |$ J
p = yh.Position;
& S, |( e1 k1 v* Z' g3 d: p/ O
th = text(p(1)-yh.Extent(3)/2, p(2)-yh.Extent(4)/2, "我喜欢MATLAB,", 'Rotation',90);
! t/ v" z, A+ q% }5 c. d& u. J6 h- F
th.Position = th.Position(1:2) - [0 th.Extent(4)];
欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/)
Powered by Discuz! X3.2