matplotlib.axis
YAxis.
set_contains
为艺术家定义自定义包含测试。
提供的callable替换默认值 contains 艺术家的方法。
contains
用于评估事件是否在艺术家内部的自定义选取器函数。函数必须具有签名:
def contains(artist: Artist, event: MouseEvent) -> bool, dict
返回:
contains()