Skip to content

Commit 63b9c48

Browse files
committed
List more options in THStack
1 parent 70d6957 commit 63b9c48

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Changes in 5.3.4
44
1. Fix - several problem in TLatex preprocessing for MathJax.js
5+
2. Fix - use "E" draw options for THStack only when no any other specified
56

67

78
## Changes in 5.3.3

scripts/JSRootPainter.hist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8158,7 +8158,7 @@
81588158
this.dolego = d.check("LEGO");
81598159

81608160
// if any histogram appears with pre-calculated errors, use E for all histograms
8161-
if (!this.nostack && this.haserrors && !this.dolego && !d.check("HIST")) this.draw_errors = true;
8161+
if (!this.nostack && this.haserrors && !this.dolego && !d.check("HIST") && (opt.indexOf("E")<0)) this.draw_errors = true;
81628162

81638163
// order used to display histograms in stack direct - true, reverse - false
81648164
this.horder = this.nostack || this.dolego;

scripts/JSRootPainter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6487,7 +6487,7 @@
64876487
JSROOT.addDrawFunc({ name: /^TH2/, icon: "img_histo2d", prereq: "hist", func: "JSROOT.Painter.drawHistogram2D", opt:";COL;COLZ;COL0;COL1;COL0Z;COL1Z;COLA;BOX;BOX1;SCAT;TEXT;CONT;CONT1;CONT2;CONT3;CONT4;ARR;SURF;SURF1;SURF2;SURF4;SURF6;E;A;LEGO;LEGO0;LEGO1;LEGO2;LEGO3;LEGO4;same", ctrl: "colz" });
64886488
JSROOT.addDrawFunc({ name: "TProfile2D", sameas: "TH2" });
64896489
JSROOT.addDrawFunc({ name: /^TH3/, icon: 'img_histo3d', prereq: "hist3d", func: "JSROOT.Painter.drawHistogram3D", opt:";SCAT;BOX;BOX2;BOX3;GLBOX1;GLBOX2;GLCOL" });
6490-
JSROOT.addDrawFunc({ name: "THStack", icon: "img_histo1d", prereq: "hist", func: "JSROOT.Painter.drawHStack", expand_item: "fHists", opt: "PFC;PLC" });
6490+
JSROOT.addDrawFunc({ name: "THStack", icon: "img_histo1d", prereq: "hist", func: "JSROOT.Painter.drawHStack", expand_item: "fHists", opt: "HIST;NOSTACK;E;PFC;PLC" });
64916491
JSROOT.addDrawFunc({ name: "TPolyMarker3D", icon: 'img_histo3d', prereq: "hist3d", func: "JSROOT.Painter.drawPolyMarker3D" });
64926492
JSROOT.addDrawFunc({ name: "TPolyLine3D", icon: 'img_graph', prereq: "3d", func: "JSROOT.Painter.drawPolyLine3D", direct: true });
64936493
JSROOT.addDrawFunc({ name: "TGraphStruct" });

0 commit comments

Comments
 (0)