How to set axis scaling?

What is the figure property name for setting the axis scaling? I would like to set 'axis tight' as the default, but I can not seem to find the appropriate property handle for this?

Respuestas (1)

Brendan Hamm
Brendan Hamm el 23 de Abr. de 2015

2 votos

In versions 2014b or later you can use the properties:
XLimSpec, YLimSpec and ZLimSpec
by setting these properties to 'tight'.
Prior to 2014b you would need to use the XLim, YLim and XLim properties, but these need to be assigned the min and max values.

1 comentario

Paul Wintz
Paul Wintz el 10 de Sept. de 2021
How is XLimSpec different that using XLimitMethod?

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.

Preguntada:

el 23 de Abr. de 2015

Comentada:

el 10 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by