shifting axis on both ends so graph does not have points on extreme end
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Viswajit Talluru
il 16 Mag 2024
Commentato: Star Strider
il 16 Mag 2024
I have the following attached graph and I need to shift the axis so that I do not have my starting point on the y axis and the last point on the extream end.
0 Commenti
Risposta accettata
Star Strider
il 16 Mag 2024
imshow(imread('baseresistancemultiplot.jpg'))
One option is:
axis('padded')
That will put space between the elements of the plot and the axes —
x = [0 1];
y = [1 2];
figure
plot(x, y, '.-')
grid
figure
plot(x, y, '.-')
grid
axis('padded')
.
2 Commenti
Più risposte (1)
Adam Danz
il 16 Mag 2024
In addition to axis padded which pads all axes limits, you could use ylim('padded') to only pad the y axis limits (same with xlim or zlim).
0 Commenti
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!