From c18771c7dc5196176fb45dbb5ebdb7c4ce74b6cd Mon Sep 17 00:00:00 2001 From: Nickolaos Giannatos Date: Mon, 13 Jun 2022 19:38:50 +0300 Subject: [PATCH] Add self.alpha to PathPatch creation in _do_extends method --- lib/matplotlib/colorbar.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index 7dee781f5f97..4c7fea2e1fdb 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -727,8 +727,9 @@ def _do_extends(self, ax=None): val = -1 if self._long_axis().get_inverted() else 0 color = self.cmap(self.norm(self._values[val])) patch = mpatches.PathPatch( - mpath.Path(xy), facecolor=color, linewidth=0, - antialiased=False, transform=self.ax.transAxes, + mpath.Path(xy), facecolor=color, alpha=self.alpha, + linewidth=0, antialiased=False, + transform=self.ax.transAxes, hatch=hatches[0], clip_on=False, # Place it right behind the standard patches, which is # needed if we updated the extends @@ -748,7 +749,7 @@ def _do_extends(self, ax=None): val = 0 if self._long_axis().get_inverted() else -1 color = self.cmap(self.norm(self._values[val])) patch = mpatches.PathPatch( - mpath.Path(xy), facecolor=color, + mpath.Path(xy), facecolor=color, alpha=self.alpha, linewidth=0, antialiased=False, transform=self.ax.transAxes, hatch=hatches[-1], clip_on=False, # Place it right behind the standard patches, which is 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