matplotlib.axis.XTick.contains

XTick.contains(mouseevent)

测试鼠标事件是否出现在刻度线中。

此函数始终返回false。测试轴整体是否包含鼠标而不是一组刻度线更有用。