Skip to content

Commit a83d5bf

Browse files
authored
Merge pull request #7216 from aldbr/v8.1_fix-ci-tests
[8.1] fix: ColorBar.draw_all() is replaced by figure.draw_without_rendering()
2 parents d011057 + a0edcb7 commit a83d5bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/DIRAC/Core/Utilities/Graphs/QualityMapGraph.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,11 @@ def draw(self):
168168
setp(self.ax.get_yticklines(), markersize=0.0) # pylint: disable=not-callable
169169

170170
cax, kw = make_axes(self.ax, orientation="vertical", fraction=0.07)
171-
cb = ColorbarBase(
171+
# ColorbarBase is used to generate the colors within the legend at the right of the plot
172+
ColorbarBase(
172173
cax, cmap=self.cmap, norm=self.norms, boundaries=self.cbBoundaries, values=self.cbValues, ticks=self.cbTicks
173174
)
174-
cb.draw_all()
175+
self.figure.draw_without_rendering()
175176
# cb = self.ax.colorbar( self.mapper, format="%d%%",
176177
# orientation='horizontal', fraction=0.04, pad=0.1, aspect=40 )
177178
# setp( cb.outline, linewidth=.5 )

0 commit comments

Comments
 (0)