Adjusting axis limits
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuesta aceptada
Walter Roberson
el 3 de Nov. de 2011
No, there is no mechanism for specifying a margin.
3 comentarios
Walter Roberson
el 3 de Nov. de 2011
max(YourData(isfinite(YourData(:)))
Or use NaN instead of inf, as max() ignores NaN.
Jan
el 3 de Nov. de 2011
Exactly for this task I'm using MinMaxElem(Y, 'finite'): http://www.mathworks.com/matlabcentral/fileexchange/30963-minmaxelem .
Más respuestas (0)
Ver también
Categorías
Más información sobre Visual Exploration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!