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