#!/usr/bin/python import time from ROOT import * f = TFile("pmuxi06_vs_Set06.root") f.cd() myStyle.cd() c = TCanvas() c.cd() pmuxi06_vs_Set06.Fit('pol0') pmuxi06_vs_Set06.Draw("AP") try: time.sleep(1E9) except KeyboardInterrupt: pass