After we we set up a range in a given X axis, how can we have the labels be in exponential form 10^power at each tick mark, not as a single multiplier x10^power?

1 view (last 30 days)
ax1.FontSize = 17;
ax1.Units = 'normalized';
ax1.XColor = 'k';
ax1.XScale = 'log'; %'linear' % see Axes Properties
ax1.XTick = logspace(log10(nOut(2)),log10(nOut(end)),5); %Define the Numbers in the X axis (Log 0 is Inf number, so start from second nOut)
ax1.XTick = round(ax1.XTick*2)/2;
ax1.XAxis.TickLabelFormat = '%.2f'; %Define the decimal places in the Numbers displayed in the X-axis
The numbers in the x axis are displayed as decimals. See Attached picture

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!