MATLAB Answers

How to represent axis values are multiple of thousand

15 views (last 30 days)
Mekala balaji
Mekala balaji on 10 May 2019
Commented: Adam Danz on 14 May 2019
New Picture (1).bmp
I have below code, and want to represent x-axis & y-axis values are multiple of 1000.
I want to display x-axis in multiple of thousand (x10^3) as shown above, and y-axis as x10^2
hold on
% scatter(x,y,'X')
% line(x,y)
% plot(x,y,'-o')
'MarkerFaceColor',[1 .6 .6])


Adam Danz
Adam Danz on 10 May 2019
How is your request different from what the plot is already doing? This plot below was produced form your code (r2019a).
190510 080549-Figure 1.jpg

Sign in to comment.

Answers (1)

Adam Danz
Adam Danz on 10 May 2019
Edited: Adam Danz on 13 May 2019
To apply exponential notation to the y axis,
ax = gca
ax.YAxis.Exponent = 2;
Here is a Demo.


Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by