How can set the starting point of X-axes while using string in the x-axes?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tania Islam
am 8 Jan. 2021
Kommentiert: Tania Islam
am 8 Jan. 2021
Hello,
I am using following code to plot my figure but here the starting point of x-axes is not close the starting point and also the end point is away from the ending point.
How can I remove the unwanted space in the figure?
I marked them with yellow color.
x_axes1=["Case-1","Case-2","Case-3","Case-4"]
Y_axes=[4,5,6,7]
C = categorical(x_axes1)
plot(C, Y_axes, 'ko-')
0 Kommentare
Akzeptierte Antwort
VBBV
am 8 Jan. 2021
%if true
% if true
x_axes={'Case-1','Case-2','Case-3','Case-4'}
Y_axes=[4,5,6,7]
figure('name','sample','PaperSize',[3.3 2.71],'NumberTitle','off');
plot(Y_axes)
set(gca,'xticklabel',x_axes.');
xticks(1:4)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!