#!/usr/bin/python import time from ROOT import * f = TFile("s87_pos.root") f.cd() myStyle.cd() c = TCanvas() c.cd() TECpos_dy00_s87_vs_TECpos_dx00_s87.Draw("APL") TECpos_dy22_s87_vs_TECpos_dx22_s87.Draw("PL") TECang_dy00_s87_vs_TECang_dx00_s87.Draw("PL") TECang_dy22_s87_vs_TECang_dx22_s87.Draw("PL") myLegend = TLegend(0.8,0.8,0.9,0.9) myLegend.SetBorderSize(1) myLegend.AddEntry( TECpos_dy00_s87_vs_TECpos_dx00_s87, "TECpos dy00 s87", "p") myLegend.AddEntry( TECpos_dy22_s87_vs_TECpos_dx22_s87, "TECpos dy22 s87", "p") myLegend.AddEntry( TECang_dy00_s87_vs_TECang_dx00_s87, "TECang dy00 s87", "p") myLegend.AddEntry( TECang_dy22_s87_vs_TECang_dx22_s87, "TECang dy22 s87", "p") myLegend.Draw() try: time.sleep(1E9) except KeyboardInterrupt: pass