# how to set x-axis and y-axis of a plot as log scales in bold with latex interpreter?

23 views (last 30 days)
SismoPlotter on 9 Feb 2022
Commented: SismoPlotter on 9 Feb 2022
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.

Yongjian Feng on 9 Feb 2022
ax = gca;
ax.XAxis.FontWeight='bold';
ax.XAxis.Scale = 'log';
SismoPlotter on 9 Feb 2022
But then, do you have a way to convert the font into latex? Sorry if there was some misunderstanding, but the latex font is a requirement for me.