Source: matplotlib Version: 3.5.0-2 Severity: normal Tags: patch fixed-upstream Control: forwarded -1 https://github.com/matplotlib/matplotlib/issues/21683
Hi, I am in the process of updateting sagemath and have problems building the documentation because of this bug. Please apply this upstream patch for the next upload, it should also be fixed in matplotlib 3.5.1. Best, Tobias
Bug: https://github.com/matplotlib/matplotlib/issues/21683 Source: https://github.com/matplotlib/matplotlib/pull/21686 >From 34636bfe2b9fa9dfa0eb6db6dc662c9b57fe79d6 Mon Sep 17 00:00:00 2001 From: Jody Klymak <jkly...@gmail.com> Date: Sat, 20 Nov 2021 08:28:56 +0100 Subject: [PATCH 1/2] FIX: don't double transpose xy for add-lines colorbar --- lib/matplotlib/colorbar.py | 2 -- 1 file changed, 2 deletions(-) --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -783,8 +783,6 @@ xy[[2, 3], 1] += fac # back to axes units... xy = self.ax.transAxes.inverted().transform(inches.transform(xy)) - if self.orientation == 'horizontal': - xy = xy.T col.set_clip_path(mpath.Path(xy, closed=True), self.ax.transAxes) self.ax.add_collection(col)