c1.setGTitle("Global labels: F_{2} , x_{γ} #bar{p}p F_{2}^{c#bar{c}}"); #put title c1.visible(1) c1.setAutoRange() h1 = H1D("Simple1",20, -2.0, 2.0) rand = Random() # fill histogram for i in range(100): h1.fill(rand.nextGaussian()) c1.draw(h1) h1.setPenWidthErr(2) c1.setNameX("Xaxis") c1.setNameY("Yaxis") c1.setName("Canvas title") c1.drawStatBox(h1) # set HLabel in the normilised coordinate system lab=HLabel("HLabel in NDC", 0.15, 0.7, "NDC") lab.setColor(Color.blue) c1.add(lab) c1.update()
p3 = P1D("DIS d (ep, ZEUS)") p3.setErrColor(c) p3.setErr(1) p3.setErrSys(1) p3.setSymbol(5) p3.setColor(c) p3.setSymbolSize(8) p3.setPenWidthErr(3) p3.setPenWidthErrSys(1) # p3.add(175, 0.0328, 0.0, 0.0, 0.0034,0.0034, 0.0, 0.0, 0.0098,0.0098) p3.add(175, 0.0328, 0.0, 0.0, 0.0034, 0.0034, 0.0, 0.0, 0.0098, 0.0098) lab5 = HLabel("HERA", 0.75, 0.84, "NDC") lab5.setColor(c) c1.add(lab5) p4 = P1D("e^{+}e^{-} #bar{d} (ALEPH)") p4.setLegend(0) c = Color.blue lab1 = HLabel(" #bar{d}(e^{+}e^{-} Z decay)", 3.37, 0.0035) lab1.setColor(c) c1.add(lab1) p4.setErrColor(c) p4.setSymbolSize(7) p4.setPenWidthErr(2) p4.setColor(c) p4.add(91, 0.0033, 0.0013, 0.0013)