8000 Update span_selector(Issue#20200) · matplotlib/matplotlib@609a840 · GitHub
[go: up one dir, main page]

Skip to content

Commit 609a840

Browse files
authored
Update span_selector(Issue#20200)
1 parent 8bed417 commit 609a840

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/widgets/span_selector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
def onselect(xmin, xmax):
3030
indmin, indmax = np.searchsorted(x, (xmin, xmax))
3131
indmax = min(len(x) - 1, indmax)
32-
32+
3333
region_x = x[indmin:indmax]
3434
region_y = y[indmin:indmax]
35-
35+
3636
if len(region_x) >= 2:
3737
line2.set_data(region_x, region_y)
3838
ax2.set_xlim(region_x[0], region_x[-1])

0 commit comments

Comments
 (0)
0