Skip to content

Commit

Permalink
line length
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhi committed Sep 28, 2021
1 parent 5028ea8 commit b279580
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mpl_point_clicker/_clicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def set_positions(self, positions):
----------
positions : dict
A dictionary with strings as keys and 2D array-like values. The values
will be interpreted as (N, 2) with x, y as the columns. The keys in the dictionary
must all be valid classes. If a class is not included in *positions* then the existing
values will not be modified.
will be interpreted as (N, 2) with x, y as the columns. The keys in
the dictionary must all be valid classes. If a class is not included in
*positions* then the existing values will not be modified.
"""
# check all keys first so we don't partially overwrite data
for k in positions.keys():
Expand Down Expand Up @@ -218,9 +218,9 @@ def on_point_added(self, func):
def on_point_removed(self, func):
"""
Connect *func* as a callback function when points are removed.
*func* will receive the the position of the new point, the class of the removed point,
the point's index in the old list of points of that class, and the updated dictionary of
all points.
*func* will receive the the position of the new point, the class of the removed
point, the point's index in the old list of points of that class, and the
updated dictionary of all points.
Parameters
----------
Expand Down Expand Up @@ -253,8 +253,8 @@ def on_class_changed(self, func):

def on_positions_set(self, func):
"""
Connect *func* as a callback function when the *set_positions* function is called.
*func* will receive the updated dictionary of all points.
Connect *func* as a callback function when the *set_positions* function is
called. *func* will receive the updated dictionary of all points.
Parameters
----------
Expand Down

0 comments on commit b279580

Please sign in to comment.