Adjusting the height of mathematical symbols in Matlab
2 次查看(过去 30 天)
显示 更早的评论
In MATLAB, I would like to use mathematical symbols in the legend and adjust the vertical alignment between the symbols.
How can I achieve this?
Here is the code I am currently testing.
I want the two symbols to have equal heights.
clear all ; clc ;clf
set(gcf,'color','w')
%%
x = 1 : 0.01:10
y = sin(x)
plot(x,y)
legend('\Sigma\gamma','box','off','fontsize',16)
0 个评论
回答(1 个)
Voss
2023-7-7
This may help get you closer to what you want:
clear all ; clc ;clf
set(gcf,'color','w')
%%
x = 1 : 0.01:10
y = sin(x)
plot(x,y)
legend('\fontsize{16}\Sigma\fontsize{22}\gamma','box','off','interpreter','tex')
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!