Skip to content

Commit

Permalink
Fix - can enable exponent only for log10
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 1, 2024
1 parent 9a9232b commit 86beb28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gpad/TAxisPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 86beb28

Please sign in to comment.