Commit 3805e765 authored by Heller, William T.'s avatar Heller, William T.
Browse files

Merge branch 'labels' into 'master'

Add axis labels

See merge request !21
parents 5add594a 9dc4cf7d
Loading
Loading
Loading
Loading
+51 −50
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,9 +248,10 @@ 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")
            fig.savefig(oname,format="png", bbox_inches = "tight")
            plt.close(fig)

    # output plots of the values of the parameters vs. chi-squared
@@ -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)