From 86beb28527b3a24ef7f485163b873e4d9c1630af Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Tue, 1 Oct 2024 16:46:12 +0200 Subject: [PATCH] Fix - can enable exponent only for log10 --- modules/gpad/TAxisPainter.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gpad/TAxisPainter.mjs b/modules/gpad/TAxisPainter.mjs index 44f935639..ed40a72af 100644 --- a/modules/gpad/TAxisPainter.mjs +++ b/modules/gpad/TAxisPainter.mjs @@ -525,7 +525,8 @@ class TAxisPainter extends ObjectPainter { this.nticks2 = 1; } this.noexp = axis?.TestBit(EAxisBits.kNoExponent); - if ((this.scale_max < 300) && (this.scale_min > 0.3) && !this.noexp_changed) this.noexp = true; + if ((this.scale_max < 300) && (this.scale_min > 0.3) && !this.noexp_changed && (this.log === 1)) + this.noexp = true; this.moreloglabels = axis?.TestBit(EAxisBits.kMoreLogLabels); this.format = this.formatLog; } else if (this.kind === kAxisLabels) {