Cursor
Cursor水平和/或垂直跨越轴并随鼠标光标移动。
ax
: Axes to attach the cursor to.horizOn
:To draw the horizontal line(default: True). (Optional Parameter)vertOn
:To draw the vertical line(default: True). (Optional Parameter)useblit
:Use blitting for faster drawing if supported by the backend(default: False). (Optional Parameter)**lineprops
:Line properties to control appearance of the lines(linewidth, color). (Optional Parameter)
实现代码
<