84 def make_plot(xlist, user_title, axis_titile, q_super_impose=0):
86 ekin_array, y_array = array(
'd'), array(
'd')
89 ekin_array.append(x[0])
101 if(q_super_impose==0):
104 frame= ROOT.TH1F(
"dumy", htit, 1, xrange[0], xrange[1]);
105 frame.SetMinimum(yrange[0]);
106 frame.SetMaximum(yrange[1]);
107 frame.SetXTitle(
"Kinetic Energy (MeV)")
108 frame.GetXaxis().SetLabelSize(0.025)
109 frame.GetXaxis().SetTitleSize(0.03)
110 frame.SetYTitle(axis_titile)
111 frame.GetYaxis().SetLabelSize(0.025)
112 frame.GetYaxis().SetTitleSize(0.03)
116 plot= ROOT.TGraph(len(ekin_array), ekin_array, y_array)
118 plot.SetLineColor(q_super_impose+1)
122
def make_plot(xlist, user_title, axis_titile, q_super_impose=0)
def plot_range(xmin, xmax, xmargin=0.)