Skip to content

Commit 1e040cd

Browse files
authored
[hist] use same n contours for background histogram
Fixes #20436
1 parent 7e0f82a commit 1e040cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hist/histpainter/src/TGraphPainter.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4474,6 +4474,7 @@ void TGraphPainter::PaintScatter(TScatter *theScatter, Option_t* chopt)
44744474
}
44754475

44764476
TH2F *h = theScatter->GetHistogram();
4477+
h->SetContour(gStyle->GetNumberOfColors()); // Ensure same number of divisions in underlying hist than in TScatter palette
44774478
if (optionAxis) {
44784479
h->Paint(" ");
44794480
if (h->GetMinimum() < h->GetMaximum()) {

0 commit comments

Comments
 (0)