how to display value 0,5000,10000,15000,20000,25000,30000,35000,40000,45000 on y-axes in bar graph matlab
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Zafar Iqbal
am 15 Dez. 2015
Bearbeitet: Stephen23
am 15 Dez. 2015
how to display value 0,5000,10000,15000,20000,25000,30000,35000,40000,45000 on y-axes in bar graph matlab
0 Kommentare
Akzeptierte Antwort
Stephen23
am 15 Dez. 2015
Bearbeitet: Stephen23
am 15 Dez. 2015
This page explains how to change the tick labels:
Note that the solution depends on what MATLAB version you are using:
% For R2014b and later:
ax = gca;
ax.XTick = [-3*pi -2*pi -pi 0 pi 2*pi 3*pi];
ax.YTick = [-1 -0.5 0 0.5 1];
% For R2014a and earlier:
ax = gca;
set(ax,'XTick',[-3*pi -2*pi -pi 0 pi 2*pi 3*pi])
set(ax,'YTick',[-1 -0.5 0 0.5 1])
Note that you can also supply the labels as strings in a cell array, which is useful if you want to precisely control their format, how they are displayed, or non-numeric tick labels.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!