Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c289c42

Browse files
committed
Fix typos
1 parent 070b912 commit c289c42

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Removing points on a PolygonSelector
22
------------------------------------
3-
After fishing drawing a `~matplotlib.widgets.PolygonSelector`, individual
3+
After completing a `~matplotlib.widgets.PolygonSelector`, individual
44
points can now be removed by right-clicking on them.

lib/matplotlib/widgets.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,14 +2759,14 @@ class PolygonSelector(_SelectorWidget):
27592759
Select a polygon region of an axes.
27602760
27612761
Place vertices with each mouse click, and make the selection by completing
2762-
the polygon (clicking on the first vertex). Once drawn indiviual vertices
2762+
the polygon (clicking on the first vertex). Once drawn individual vertices
27632763
can be moved by clicking and dragging with the left mouse button, or
2764-
deleted by clicking the right mouse button.
2764+
removed by clicking the right mouse button.
27652765
27662766
In addition, the following modifier keys can be used:
27672767
27682768
- Hold *ctrl* and click and drag a vertex to reposition it before the
2769-
polygon has been copleted.
2769+
polygon has been completed.
27702770
- Hold the *shift* key and click and drag anywhere in the axes to move
27712771
all vertices.
27722772
- Press the *esc* key to start a new polygon.
@@ -2839,7 +2839,6 @@ def _nverts(self):
28392839

28402840
def _remove_vertex(self, i):
28412841
"""Remove vertex with index i."""
2842-
print(self._nverts)
28432842
if (self._nverts > 2 and
28442843
self._polygon_completed and
28452844
i in (0, self._nverts - 1)):
@@ -2857,7 +2856,7 @@ def _remove_vertex(self, i):
28572856
self._xs.pop(i)
28582857
self._ys.pop(i)
28592858
if self._nverts <= 2:
2860-
# If only one point left, return to un-complete state to let user
2859+
# If only one point left, return to incomplete state to let user
28612860
# start drawing again
28622861
self._polygon_completed = False
28632862

0 commit comments

Comments
 (0)