Skip to content

Commit 6a5ef44

Browse files
committed
Fix - when set pad logx/logy, reset user ranges
If changing log setting, one need to recalculate user ranges. To avoid not trivial calculations, just reset user ranges - they will be recalculated automatically by histogram painter
1 parent 3e58dae commit 6a5ef44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/JSRootPainter.v6.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4018,8 +4018,8 @@
40184018
if (d.check("CP",true)) this.options.CreatePalette = d.partAsInt(0,0);
40194019

40204020
if (d.check('WHITE')) pad.fFillColor = 0;
4021-
if (d.check('LOGX')) pad.fLogx = 1;
4022-
if (d.check('LOGY')) pad.fLogy = 1;
4021+
if (d.check('LOGX')) { pad.fLogx = 1; pad.fUxmin = 0; pad.fUxmax = 1; pad.fX1 = 0; pad.fX2 = 1; }
4022+
if (d.check('LOGY')) { pad.fLogy = 1; pad.fUymin = 0; pad.fUymax = 1; pad.fY1 = 0; pad.fY2 = 1; }
40234023
if (d.check('LOGZ')) pad.fLogz = 1;
40244024
if (d.check('LOG')) pad.fLogx = pad.fLogy = pad.fLogz = 1;
40254025
if (d.check('GRIDX')) pad.fGridx = 1;

0 commit comments

Comments
 (0)