Skip to content

Commit 39d2b74

Browse files
committed
Fix - use drawopt also for graph drawing in TTree
For histogram option also stored as fOption and therefore not necessary
1 parent c8e00d9 commit 39d2b74

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

modules/draw/TTree.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async function treeDrawProgress(obj, final) {
112112
if (final) console.log('no result after tree drawing');
113113
this.last_pr = false; // return false indicating no drawing is done
114114
} else {
115-
this.last_pr = drawTreeDrawResult(this.drawid, obj).then(p => {
115+
this.last_pr = drawTreeDrawResult(this.drawid, obj, this.drawopt).then(p => {
116116
this.obj_painter = p;
117117
if (!final) this.last_pr = null;
118118
return p; // return painter for histogram

modules/tree.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,9 +875,13 @@ class TDrawSelector extends TSelector {
875875

876876
if (args.drawopt !== undefined)
877877
this.histo_drawopt = args.drawopt;
878+
else if (this.graph)
879+
this.histo_drawopt = 'P';
878880
else
879881
this.histo_drawopt = (this.ndim === 2) ? 'col' : '';
880882

883+
args.drawopt = this.histo_drawopt;
884+
881885
return true;
882886
}
883887

0 commit comments

Comments
 (0)