RectangleSelector Disappears on Zoom

前端 未结 3 910
盖世英雄少女心
盖世英雄少女心 2021-02-14 07:59

When I run this example and create a rectangular selection if I zoom or move the plot window around the selection disappears until I deselect the move or zoom tool and click on

3条回答
  •  不要未来只要你来
    2021-02-14 08:50

    If I understand correctly, the rectangle selector should stay visible throughout the process of panning or zooming. This could be achieved by not using blitting,

    toggle_selector.RS = RectangleSelector(ax, ...,  useblit=False, ...)
    

    A side effect of this is that the plotting may become slow depending on the complexity of the plot, as without blitting, the complete plot is continuously redrawn while using the rectangle selector.

提交回复
热议问题