Matplotlib.axis.Axis.get_minor_locator()
matplotlib库的Axis模块中的Axis.get_minor_locator()函数用于获取次要指针的定位器。
语法:Axis.get_minor_locator(self)
参数:该方法不接受任何参数。
返回值:该方法返回次要标记符的定位器。
下面的例子说明了matplotlib.axis.axis.get_minor_locator()函数在matplotlib.axis中的作用:
示例1
输出:
示例2
输出: