how to set x-axis and y-axis of a plot as log scales in bold with latex interpreter?
조회 수: 30 (최근 30일)
표시 이전 댓글
I would like to set the axis numbers of a plot in bold in latex font using the log scale.
I can set the axis numbers bold in latex font, but without using the log scale. When using the log scale setting, the bold setting is not taken into account.
ax = gca;
ax.XAxis.TickLabelInterpreter = 'latex';
ax.XAxis.TickLabelFormat = '\\textbf{%g}';
ax.XAxis.Scale = 'log';
Here is the code I am trying to use.
댓글 수: 0
답변 (1개)
Yongjian Feng
2022년 2월 9일
How about these:
ax = gca;
ax.XAxis.FontWeight='bold';
ax.XAxis.Scale = 'log';
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!