Azzera filtri
Azzera filtri

Adjusting axis limits

2 visualizzazioni (ultimi 30 giorni)
Jared
Jared il 3 Nov 2011
I am trying to have the axis limits automatically adjust. I know they do by default, but they way it does it, the extreme data points are right on the edge of the plot. Is there any way to specify a margin?
I looked in axis properties but didn't see anything.

Risposta accettata

Walter Roberson
Walter Roberson il 3 Nov 2011
No, there is no mechanism for specifying a margin.
  3 Commenti
Walter Roberson
Walter Roberson il 3 Nov 2011
max(YourData(isfinite(YourData(:)))
Or use NaN instead of inf, as max() ignores NaN.
Jan
Jan il 3 Nov 2011
Exactly for this task I'm using MinMaxElem(Y, 'finite'): http://www.mathworks.com/matlabcentral/fileexchange/30963-minmaxelem .

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Visual Exploration in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by