labelling issue in graph plotting
26 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
yogeshwari patel
el 21 de Dic. de 2024 a las 5:13
Respondida: Suraj Kumar
el 21 de Dic. de 2024 a las 7:19
plot(r,v1_lower,r,v1_upper,'LineWidth',4)
xlabel('r')
ylabel('\widetilde\nu_1(\chi ,\tau ;r )')
%subplot(2,2,2)
plot(r,v2_lower,r,v2_upper,'LineWidth',4)
xlabel('r')
ylabel('\widetilde\nu_2(\chi ,\tau ;r )')
%subplot(2,2,3)
plot(r,v3_lower,r,v3_upper,'LineWidth',4)
xlabel('r')
ylabel('\widetilde\nu_3(\chi ,\tau ;r )')
Due to \widetilde the y axis is not displayed \widetilde\nu_3(\chi ,\tau ;r ) the notation are not displayed
0 comentarios
Respuestas (1)
Suraj Kumar
el 21 de Dic. de 2024 a las 7:19
I understand the issue that you are encountering here in labeling the y-axis in the MATLAB plots.
The issue is that LaTeX commands like '\widetilde' weren't enclosed in dollar signs ($) and MATLAB wasn't set to interpret labels with LaTeX.
You can refer to the below mentioned code snippet and the attached output for better understanding:
plot(r, v1_lower, r, v1_upper, 'LineWidth', 2);
xlabel('r');
ylabel('$\widetilde{\nu}_1(\chi ,\tau ;r )$', 'Interpreter', 'latex');
title('Plot of $\widetilde{\nu}_1$', 'Interpreter', 'latex');
legend('Lower', 'Upper');
Output:
To learn more about using LaTex to format titles and axis labels, you can refer to the following documentation:
Hope this helps!
0 comentarios
Ver también
Categorías
Más información sobre Annotations 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!