We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa30a62 commit 8553cc7Copy full SHA for 8553cc7
1 file changed
modules/hist2d/TGraphPainter.mjs
@@ -75,11 +75,14 @@ class TGraphPainter extends ObjectPainter {
75
return true;
76
77
let is_normal = false;
78
- if (check_axis !== 'y')
79
- is_normal ||= (histo.fXaxis.fXmin !== 0.0011) || (histo.fXaxis.fXmax !== 1.1);
+ if (check_axis !== 'y') {
+ is_normal ||= ((histo.fXaxis.fXmin !== 0.0011) && (histo.fXaxis.fXmin !== 0)) ||
80
+ ((histo.fXaxis.fXmax !== 1.1) && (histo.fXaxis.fXmax !== 1));
81
+ }
82
83
if (check_axis !== 'x') {
- is_normal ||= (histo.fYaxis.fXmin !== 0.0011) || (histo.fYaxis.fXmax !== 1.1) ||
84
+ is_normal ||= ((histo.fYaxis.fXmin !== 0.0011) && (histo.fYaxis.fXmin !== 0)) ||
85
+ ((histo.fYaxis.fXmax !== 1.1) && (histo.fYaxis.fXmax !== 1)) ||
86
(histo.fMinimum !== 0.0011) || (histo.fMaximum !== 1.1);
87
}
88
0 commit comments