Skip to content

Commit ad1d91d

Browse files
authored
Merge pull request #23275 from meeseeksmachine/auto-backport-of-pr-23260-on-v3.5.x
Backport PR #23260 on branch v3.5.x (Fix Colorbar extend patches to have correct alpha)
2 parents c81cc57 + cddda1f commit ad1d91d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/colorbar.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,9 @@ def _do_extends(self, ax=None):
707707
val = -1 if self._long_axis().get_inverted() else 0
708708
color = self.cmap(self.norm(self._values[val]))
709709
patch = mpatches.PathPatch(
710-
mpath.Path(xy), facecolor=color, linewidth=0,
711-
antialiased=False, transform=self.ax.transAxes,
710+
mpath.Path(xy), facecolor=color, alpha=self.alpha,
711+
linewidth=0, antialiased=False,
712+
transform=self.ax.transAxes,
712713
hatch=hatches[0], clip_on=False,
713714
# Place it right behind the standard patches, which is
714715
# needed if we updated the extends
@@ -728,7 +729,7 @@ def _do_extends(self, ax=None):
728729
val = 0 if self._long_axis().get_inverted() else -1
729730
color = self.cmap(self.norm(self._values[val]))
730731
patch = mpatches.PathPatch(
731-
mpath.Path(xy), facecolor=color,
732+
mpath.Path(xy), facecolor=color, alpha=self.alpha,
732733
linewidth=0, antialiased=False,
733734
transform=self.ax.transAxes, hatch=hatches[-1], clip_on=False,
734735
# Place it right behind the standard patches, which is

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy