How to set axis scaling?

4 次查看(过去 30 天)
John
John 2015-4-23
评论: Paul Wintz 2021-9-10
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?

回答(1 个)

Brendan Hamm
Brendan Hamm 2015-4-23
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.

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by