#!/usr/bin/python import time from ROOT import * f = TFile("s86_pos.root") f.cd() myStyle.cd() c = TCanvas() c.cd() TECpos_dy00_s86_vs_TECpos_dx00_s86.Draw("APL") TECpos_dy22_s86_vs_TECpos_dx22_s86.Draw("PL") TECang_dy00_s86_vs_TECang_dx00_s86.Draw("PL") TECang_dy22_s86_vs_TECang_dx22_s86.Draw("PL") myLegend = TLegend(0.8,0.8,0.9,0.9) myLegend.SetBorderSize(1) myLegend.AddEntry( TECpos_dy00_s86_vs_TECpos_dx00_s86, "TECpos dy00 s86", "p") myLegend.AddEntry( TECpos_dy22_s86_vs_TECpos_dx22_s86, "TECpos dy22 s86", "p") myLegend.AddEntry( TECang_dy00_s86_vs_TECang_dx00_s86, "TECang dy00 s86", "p") myLegend.AddEntry( TECang_dy22_s86_vs_TECang_dx22_s86, "TECang dy22 s86", "p") myLegend.Draw() try: time.sleep(1E9) except KeyboardInterrupt: pass