#!/usr/bin/python import time from ROOT import * f = TFile("s76_pos.root") f.cd() myStyle.cd() c = TCanvas() c.cd() TECpos_dy00_s76_vs_TECpos_dx00_s76.Draw("APL") TECpos_dy22_s76_vs_TECpos_dx22_s76.Draw("PL") TECang_dy00_s76_vs_TECang_dx00_s76.Draw("PL") TECang_dy22_s76_vs_TECang_dx22_s76.Draw("PL") myLegend = TLegend(0.8,0.8,0.9,0.9) myLegend.SetBorderSize(1) myLegend.AddEntry( TECpos_dy00_s76_vs_TECpos_dx00_s76, "TECpos dy00 s76", "p") myLegend.AddEntry( TECpos_dy22_s76_vs_TECpos_dx22_s76, "TECpos dy22 s76", "p") myLegend.AddEntry( TECang_dy00_s76_vs_TECang_dx00_s76, "TECang dy00 s76", "p") myLegend.AddEntry( TECang_dy22_s76_vs_TECang_dx22_s76, "TECang dy22 s76", "p") myLegend.Draw() try: time.sleep(1E9) except KeyboardInterrupt: pass