Adjusting the height of mathematical symbols in Matlab
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Voss
el 7 de Jul. de 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 comentario
Ver también
Categorías
Más información sobre Legend en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!