Commit 5cc0686e authored by mdoucet's avatar mdoucet
Browse files

Add axis labels

parent 5add594a
Loading
Loading
Loading
Loading
+50 −49
Original line number Diff line number Diff line
@@ -234,7 +234,8 @@ def outputSetRes(conf, res):
                    grph.set_autoscale_on(True)
                    grph.plot(vals[i],vals[j],'ko')
                    grph.set_title(str(names[j])+" vs. "+str(names[i]))
                    
                    grph.set_xlabel(str(names[i]))
                    grph.set_ylabel(str(names[j]))
                    oname = str(conf.output)+"_"+str(names[j])+"_"+str(names[i])+".png"
                    fig.savefig(oname,format="png")
                    plt.close(fig)
@@ -247,7 +248,8 @@ def outputSetRes(conf, res):
            grph.set_autoscale_on(True)
            grph.hist(vals[i],bins=5,color = 'r', rwidth=0.9)
            grph.set_title("Histogram of "+str(names[i]))
            
            grph.set_xlabel(str(names[i]))
            grph.set_ylabel("Count")
            oname = str(conf.output)+"_"+str(names[i])+"_histogram.png"
            fig.savefig(oname,format="png")
            plt.close(fig)
@@ -292,4 +294,3 @@ def outputFitCurve(conf, d, m, mnum, chisq):
    oname = str(conf.output)+"%02d.png" %(mnum)
    fig.savefig(oname,format='png')
    plt.close(fig)