There was an error while loading. Please reload this page.
1 parent 1e98377 commit c9cf760Copy full SHA for c9cf760
2 files changed
lib/matplotlib/axes/_axes.py
@@ -452,8 +452,10 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None,
452
edgecolor : :mpltype:`color`, default: '0.5'
453
Color of the rectangle and color of the connecting lines.
454
455
- alpha : float, default: 0.5
456
- Transparency of the rectangle and connector lines.
+ alpha : float or None, default: 0.5
+ Transparency of the rectangle and connector lines. If not
457
+ ``None``, this overrides any alpha value included in the
458
+ *facecolor* and *edgecolor* parameters.
459
460
zorder : float, default: 4.99
461
Drawing order of the rectangle and connector lines. The default,
lib/matplotlib/patches.py
@@ -380,6 +380,8 @@ def set_edgecolor(self, color):
380
Parameters
381
----------
382
color : :mpltype:`color` or None
383
+ Note that any alpha value included in this color will be ignored
384
+ unless the patch's alpha is set to ``None``.
385
"""
386
self._original_edgecolor = color
387
self._set_edgecolor(color)
@@ -398,6 +400,8 @@ def set_facecolor(self, color):
398
400
399
401
402
403
404
405
406
self._original_facecolor = color
407
self._set_facecolor(color)
@@ -409,6 +413,8 @@ def set_color(self, c):
409
413
410
414
411
415
c : :mpltype:`color`
416
417
+ unless the patch's alpha is set to None.
412
418
419
See Also
420
--------
0 commit comments