From 3e86271001930398377f8d08907119f2a72ec448 Mon Sep 17 00:00:00 2001 From: aldbr Date: Wed, 20 Sep 2023 15:23:28 +0200 Subject: [PATCH] fix: ColorBar.draw_all() is replaced by figure.draw_without_rendering() --- src/DIRAC/Core/Utilities/Graphs/QualityMapGraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DIRAC/Core/Utilities/Graphs/QualityMapGraph.py b/src/DIRAC/Core/Utilities/Graphs/QualityMapGraph.py index 39c082801d2..ea8d9fbec3d 100644 --- a/src/DIRAC/Core/Utilities/Graphs/QualityMapGraph.py +++ b/src/DIRAC/Core/Utilities/Graphs/QualityMapGraph.py @@ -168,10 +168,10 @@ def draw(self): setp(self.ax.get_yticklines(), markersize=0.0) # pylint: disable=not-callable cax, kw = make_axes(self.ax, orientation="vertical", fraction=0.07) - cb = ColorbarBase( + ColorbarBase( cax, cmap=self.cmap, norm=self.norms, boundaries=self.cbBoundaries, values=self.cbValues, ticks=self.cbTicks ) - cb.draw_all() + self.figure.draw_without_rendering() # cb = self.ax.colorbar( self.mapper, format="%d%%", # orientation='horizontal', fraction=0.04, pad=0.1, aspect=40 ) # setp( cb.outline, linewidth=.5 )