Adjusting the height of mathematical symbols in Matlab
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Voss
am 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')
1 Kommentar
Siehe auch
Kategorien
Mehr zu Legend finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!