Skip to content

Commit

Permalink
Merge pull request DIRACGrid#7216 from aldbr/v8.1_fix-ci-tests
Browse files Browse the repository at this point in the history
[8.1] fix: ColorBar.draw_all() is replaced by figure.draw_without_rendering()
  • Loading branch information
chrisburr authored Sep 22, 2023
2 parents d011057 + a0edcb7 commit a83d5bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DIRAC/Core/Utilities/Graphs/QualityMapGraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ 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 is used to generate the colors within the legend at the right of the plot
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 )
Expand Down

0 comments on commit a83d5bf

Please sign in to comment.