All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
savegraph Namespace Reference

Functions

def main
 

Variables

tuple parser = argparse.ArgumentParser()
 

Function Documentation

def savegraph.main (   args)

Definition at line 6 of file savegraph.py.

6 
7 def main(args):
8  f = ROOT.TFile(args.input)
9  graph = f.Get(args.graph)
10  canvas = ROOT.TCanvas("canvas", "Canvas", 250,100,700,500)
11  util.style(args, graph)
12  graph.Draw("AC")
13  util.resize_graph(args, graph)
14  graph.Draw("AC")
15 
16  line = ROOT.TGraph(2, array('d', [0., 1.]), array('d', [1., 0.]))
17  line.SetLineColor(ROOT.kRed)
18  line.Draw("SAME")
19 
20  canvas.Update()
21 
22  util.wait(args)
23  util.write(args, canvas)
def main
Definition: savegraph.py:6
def style
Definition: util.py:237
def write
Definition: util.py:23
def wait
Definition: util.py:19
def resize_graph
Definition: util.py:112

Variable Documentation

tuple savegraph.parser = argparse.ArgumentParser()

Definition at line 25 of file savegraph.py.