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;