print "Error for {}: could not make correlation between gFEX rho and primary vertices".format(col) pl.close(fig) pass try: print "(2)\t{}".format(col) x = data['offline_rho'] y = data[col] bins_x = bins_rho bins_y = bins_rho label_x = helpers.labels['rho.offline'] label_y = '{}, {}'.format(helpers.labels['rho.gFEX'], helpers.region_legend(legend)) xlim = ylim = (0., 1000.) fig, ax = helpers.corr2d(x, y, bins_x, bins_y, label_x, label_y, align='br', strings=[helpers.dataSetStr, helpers.towerThrStr]) helpers.add_atlas(fig, ax, level=1) helpers.to_file(fig, ax, 'plots/pileup/{}_{}_correlation.png'.format(filename_id, col)) helpers.to_file(fig, ax, 'plots/pileup/{}_{}_correlation.pdf'.format(filename_id, col)) helpers.to_file(fig, ax, 'plots/pileup/{}_{}_correlation.eps'.format(filename_id, col)) pl.close(fig) except: print "Error for {}: could not make correlation between offline rho and gFEX rho".format(col) pl.close(fig) pass endTime_wall = time.time() endTime_processor = time.clock() print "Finished job in:\n\t Wall time: {:0.2f} s \n\t Clock Time: {:0.2f} s".format((endTime_wall - startTime_wall), (endTime_processor - startTime_processor))