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