Skip to content

Commit

Permalink
remove drawtype arg of RectangleSelector
Browse files Browse the repository at this point in the history
new version of matplotlib RectangleSelector does not need anymore drawtype
  • Loading branch information
jsmicha authored Mar 24, 2023
1 parent 4eaad26 commit 7ac861f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lauetoolsnn/lauetoolsneuralnetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -5642,14 +5642,16 @@ def initialize_plot(self):
self.im_axes3 = None

toggle_selector.RS = RectangleSelector(self.canvas.axes, self.box_select_callback,
drawtype='box', useblit=True,
#drawtype='box',
useblit=True,
button=[1], # don't use middle/right button
minspanx=5, minspany=5,
spancoords='pixels',
interactive=True)

toggle_selector1.RS = RectangleSelector(self.canvas.axes1, self.line_select_callback,
drawtype='line', useblit=True,
#drawtype='line',
useblit=True,
button=[1], # don't use middle/right button
minspanx=5, minspany=5,
spancoords='pixels',
Expand Down

0 comments on commit 7ac861f

Please sign in to comment.