From 421e383f8e2d9fb1eabcf158b6a20587bb01a568 Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Tue, 19 Jul 2016 09:24:50 +0200 Subject: [PATCH] Use histogram fMinimum/fMaximum for lego plot (3D) Z axis range when needed --- scripts/JSRootPainter.more.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/JSRootPainter.more.js b/scripts/JSRootPainter.more.js index cb19df65f..ca90d7805 100644 --- a/scripts/JSRootPainter.more.js +++ b/scripts/JSRootPainter.more.js @@ -2918,6 +2918,10 @@ if ((this.gmin0bin===null) || (this.gmin0bin > bin_content)) this.gmin0bin = bin_content; } } + if ((histo.fMinimum != -1111) && (histo.fMaximum != -1111)) { + this.gminbin = histo.fMinimum; + this.gmaxbin = histo.fMaximum; + } // this value used for logz scale drawing if (this.gmin0bin === null) this.gmin0bin = this.gmaxbin*1e-4;