Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6a67b8e

Browse filesBrowse files
committed
Forwarded select Rectangle kwargs to the Conneciton patch
1 parent e98d8d0 commit 6a67b8e
Copy full SHA for 6a67b8e

File tree

1 file changed

+12
-1
lines changed
Filter options

1 file changed

+12
-1
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+12-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.