8000 Apply suggestions from code review · matplotlib/matplotlib@8ddd60b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ddd60b

Browse files
tacaswelloscargusQuLogic
authored
Apply suggestions from code review
Co-authored-by: Oscar Gustafsson <oscar.gustafsson@gmail.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent ae79828 commit 8ddd60b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/matplotlib/patches.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,17 @@ def contains(self, mouseevent, radius=None):
129129
130130
Parameters
131131
----------
132-
mouseevent : .MouseEvent
132+
mouseevent : `~matplotlib.backend_bases.MouseEvent`
133133
Where the user clicked.
134134
135135
radius : float, optional
136136
Additional margin on the patch in target coordinates of
137-
`.Patches.get_transform`. See `.Path.contains_point` for further
137+
`.Patch.get_transform`. See `.Path.contains_point` for further
138138
details.
139139
140140
If `None`, the default value depends on the state of the object:
141141
142-
- If `matplotlib.Artist.get_picker` is a number, the default
142+
- If `.Artist.get_picker` is a number, the default
143143
is that value. This is so that picking works as expected.
144144
- Otherwise if the edge color has a non-zero alpha, the default
145145
is half of the linewidth. This is so that all the colored
@@ -183,17 +183,17 @@ def contains_point(self, point, radius=None):
183183
----------
184184
point : (float, float)
185185
The point (x, y) to check, in target coordinates of
186-
`.Patches.get_transform()`. These are display coordinates for patches
186+
`.Patch.get_transform`. These are display coordinates for patches
187187
that are added to a figure or axes.
188188
189189
radius : float, optional
190190
Additional margin on the patch in target coordinates of
191-
`.Patches.get_transform`. See `.Path.contains_point` for further
191+
`.Patch.get_transform`. See `.Path.contains_point` for further
192192
details.
193193
194194
If `None`, the default value depends on the state of the object:
195195
196-
- If `matplotlib.Artist.get_picker` is a number, the default
196+
- If `.Artist.get_picker` is a number, the default
197197
is that value. This is so that picking works as expected.
198198
- Otherwise if the edge color has a non-zero alpha the default
199199
is half of the linewidth. This is so that all the colored
@@ -250,16 +250,16 @@ def contains_points(self, points, radius=None):
250250
that are added to a figure or axes. Columns contain x and y values.
251251
radius : float, optional
252252
Additional margin on the patch in target coordinates of
253-
`.Patches.get_transform`. See `.Path.contains_point` for further
253+
`.Patch.get_transform`. See `.Path.contains_point` for further
254254
details.
255255
256256
If `None`, the default value depends on the state of the object:
257257
258-
- If `matplotlib.Artist.get_picker` is a number, the default
258+
- If `.Artist.get_picker` is a number, the default
259259
is that value. This is so that picking works as expected.
260260
- Otherwise if the edge color has a non-zero alpha the default
261261
is half of the linewidth. This is so that all the colored
262-
pixels are "in" the patch
262+
pixels are "in" the patch.
263263
- Finally, if the edge has 0 alpha, the default is 0. This is
264264
so that patches without a stroked edge do not have points
265265
outside of the filled region report as "in" due to an

0 commit comments

Comments
 (0)
0