Skip to content

Commit 990f9fe

Browse files
committed
Fix - do not set histogram min/max for scatter plot
1 parent c3fda42 commit 990f9fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/hist2d/TGraphPainter.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,10 @@ class TGraphPainter extends ObjectPainter {
349349
if (set_y && !histo.fYaxis.fLabels) {
350350
histo.fYaxis.fXmin = Math.min(minimum0, minimum);
351351
histo.fYaxis.fXmax = Math.max(maximum0, maximum);
352-
histo.fMinimum = minimum;
353-
histo.fMaximum = maximum;
352+
if (!this._need_2dhist) {
353+
histo.fMinimum = minimum;
354+
histo.fMaximum = maximum;
355+
}
354356
}
355357

356358
return histo;

0 commit comments

Comments
 (0)