matplotlib.axis.Axis.minorticks_on#
- Axis.minorticks_on()[source]#
根据刻度(
get_scale
)在轴上显示默认的次刻度。刻度使用特定的次定位器:
log:
LogLocator
symlog:
SymmetricalLogLocator
asinh:
AsinhLocator
logit:
LogitLocator
default:
AutoMinorLocator
显示次刻度可能会降低性能;如果绘图速度成为问题,您可以使用
minorticks_off()
关闭它们。