How to set default axes tick using groot?

7 次查看(过去 30 天)
I tried to set axis tick using
set(groot,'XMinorTick','on','YMinorTick','on')
Error using matlab.ui.Root/set
Unrecognized property XMinorTick for class Root.
But it gives an error. any idea how to fix?

回答(1 个)

Voss
Voss 2023-3-9
set(groot,'DefaultAxesXMinorTick','on','DefaultAxesYMinorTick','on')

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by