Skip to content

Commit 6a67b8e

Browse files
committed
Forwarded select Rectangle kwargs to the Conneciton patch
1 parent e98d8d0 commit 6a67b8e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,11 +474,22 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None,
474474
if self.yaxis.get_inverted():
475475
ey = 1 - ey
476476
xy_data = x + ex * width, y + ey * height
477+
478+
blacklist = {
479+
'alpha', 'rasterized', 'transform',
480+
'color', 'facecolor', 'url',
481+
'hatch', 'in_layout', 'path_effects'}
482+
483+
patch_kwargs = {
484+
key: val for key, val in kwargs.items()
485+
if key not in blacklist}
486+
477487
p = mpatches.ConnectionPatch(
478488
xyA=xy_inset_ax, coordsA=inset_ax.transAxes,
479489
xyB=xy_data, coordsB=self.transData,
480490
arrowstyle="-", zorder=zorder,
481-
edgecolor=edgecolor, alpha=alpha)
491+
edgecolor=edgecolor, alpha=alpha,
492+
**patch_kwargs)
482493
connects.append(p)
483494
self.add_patch(p)
484495

0 commit comments

Comments
 (0)