Adjusting the height of mathematical symbols in Matlab
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Voss
on 7 Jul 2023
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')
See Also
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!