Skip to content

Commit b83bfa7

Browse files
committed
Add in build3d.htm demo TCanvas instead of TH1
1 parent 77a38cd commit b83bfa7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

demo/build3d.htm

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@
114114
let server = 'https://root.cern/js/files/',
115115
filename = server + 'hsimple.root',
116116
filename2 = server + 'graph2d.root',
117-
filename3 = server + 'geom/simple_alice.json.gz';
117+
filename3 = server + 'geom/simple_alice.json.gz',
118+
filename4 = server + 'tutorials_fit.root';
119+
118120

119121
let file = await openFile(filename);
120122
let hist2 = await file.readObject('hpxpy');
@@ -126,9 +128,10 @@
126128

127129
await create3d(hist3, 'box3', -150, '#color[2]{TH3} #color[4]{box} plot');
128130

129-
let hist1 = await file.readObject('hpx');
131+
let file4 = await openFile(filename4);
132+
let canv = await file4.readObject('fit2a');
130133

131-
await create3d(hist1, 'lego2', 400, '#color[2]{TH1} #color[4]{lego} plot');
134+
await create3d(canv, '', 400, '#color[2]{TCanvas} with #color[4]{TH2} and #color[4]{TF2}');
132135

133136
let geom = await httpRequest(filename3, 'object');
134137
await create3d(geom, '', -400, '#color[2]{Geometry} build', 0.2);

0 commit comments

Comments
 (0)