8000 Fixed code added in 0c20b5c8013f93147c221f7c035f465c7825d10b · matplotlib/matplotlib@17fa943 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17fa943

Browse files
committed
Fixed code added in 0c20b5c
(PR #1505). Tests added is #1663 pass with this patch.
1 parent 1efa832 commit 17fa943

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/lines.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def contains(self, mouseevent):
267267
# the math involved in checking for containment (here and inside of segment_hits) assumes
268268
# that it is OK to overflow. In case the application has set the error flags such that
269269
# an exception is raised on overflow, we temporarily set the appropriate error flags here
270-
# and set them back when we are finished.
270+
# and set them back when we are finished.
271271
olderrflags = np.seterr(all='ignore')
272272
try:
273273
# Check for collision
@@ -448,7 +448,7 @@ def recache(self, always=False):
448448
def _transform_path(self, subslice=None):
449449
"""
450450
Puts a TransformedPath instance at self._transformed_path,
451-
all invalidation of the transform is then handled by the
451+
all invalidation of the transform is then handled by the
452452
TransformedPath instance.
453453
"""
454454
# Masked arrays are now handled by the Path class itself
@@ -540,7 +540,7 @@ def draw(self, renderer):
540540
else:
541541
gc.set_foreground(edgecolor)
542542
gc.set_linewidth(self._markeredgewidth)
543-
gc.set_alpha(self._alpha)
543+
544544
marker = self._marker
545545
tpath, affine = transformed_path.get_transformed_points_and_affine()
546546
if len(tpath.vertices):
@@ -970,7 +970,7 @@ def _get_rgba_face(self, alt=False):
970970
if is_string_like(facecolor) and facecolor.lower() == 'none':
971971
rgbaFace = None
972972
else:
973-
rgbaFace = colorConverter.to_rgba(facecolor)
973+
rgbaFace = colorConverter.to_rgba(facecolor, self._alpha)
974974
return rgbaFace
975975

976976
# some aliases....

0 commit comments

Comments
 (0)
0