Axis labelling in MATLAB plot
조회 수: 8 (최근 30일)
이전 댓글 표시
I tried to put the string Pr, m as x-axis label in MATLAB. I used the following statement:
xlabel('\textbf{Pr},textbf{\it{m}}','interpreter','latex','FontWeight','bold','FontSize',15,'FontName','Times New Roman');
Pr appears bold in the statement whereas m does not appear bold. How do I solve this problem?
Similarly for y-axis label
ylabel('${\textbf{Nu}_{\bar{x}}}{(\textbf{Gr}_{\bar{x}}^*)^-\frac{1}{6}}$','interpreter','latex','FontName','Times New Roman','Fontsize',15);
x-bar does not appear bold.
Moreover - (minus) appear as superscript whereas (1/6) does not.
Any help is highly appreciated.
댓글 수: 0
답변 (2개)
Grzegorz Knor
2011년 10월 31일
They should look something like this:
xlabel('\textbf{Pr}, \it{\textbf{m}}', 'interpreter', 'latex', 'FontWeight',...
'bold', 'FontSize', 15, 'FontName', 'Times New Roman');
ylabel('$\textbf{Nu}_{\bar{\textbf{x}}}{(\textbf{Gr}_{\bar{\textbf{x}}}^{*})}^{-\frac{1}{6}}$',... 'interpreter', 'latex', 'FontName', 'Times New Roman',... 'Fontsize',15);
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!