def generateGraphs(times, bandwidths, iosTime, iosFin, writeBins,\ hostdirs, sizes, processorGraphs, mpiFile, average, \ jobID, above, below): matplotlib.rc("xtick", labelsize=10) matplotlib.rc("ytick", labelsize=10) logicalFilename = hostdirs[0][1] logicalFilename = logicalFilename.replace("/", "_") pdf = PdfPages("Analysis" + logicalFilename + ".pdf") #cooresponds to the scale functions count, if more units added, #scale should be adjusted as well units = {0: " B", 1: " KiB", 2: " MiB", 3: " GiB", 4: " TiB", 5: " PiB"} graphingLibrary.bandwidthGraphs(times, bandwidths, iosTime, iosFin, \ hostdirs, sizes, units) pdf.savefig() plt.close() graphingLibrary.networkGraph(hostdirs) pdf.savefig() plt.close() graphingLibrary.barGraph(writeBins, units) pdf.savefig() plt.close() if processorGraphs: graphPerProcessor(mpiFile, len(hostdirs) - 1, average, jobID, above, below) pdf.savefig() plt.close() pdf.close()
def generateGraphs(times, bandwidths, iosTime, iosFin, writeBins,\ hostdirs, sizes, processorGraphs, mpiFile, average, \ jobID, above, below): matplotlib.rc("xtick", labelsize=10) matplotlib.rc("ytick", labelsize=10) logicalFilename = hostdirs[0][1] logicalFilename = logicalFilename.replace("/", "_") pdf = PdfPages("Analysis" + logicalFilename + ".pdf") #cooresponds to the scale functions count, if more units added, #scale should be adjusted as well units = {0: " B", 1:" KiB", 2:" MiB", 3:" GiB", 4:" TiB", 5:" PiB"} graphingLibrary.bandwidthGraphs(times, bandwidths, iosTime, iosFin, \ hostdirs, sizes, units) pdf.savefig() plt.close() graphingLibrary.networkGraph(hostdirs) pdf.savefig() plt.close() graphingLibrary.barGraph(writeBins, units) pdf.savefig() plt.close() if processorGraphs: graphPerProcessor(mpiFile,len(hostdirs)-1, average, jobID, above, below) pdf.savefig() plt.close() pdf.close()
def graph((function, times, bandwidths, iosTime, iosFin, writeBins, \ hostdirs, sizes, mpiFile, average, jobID, \ above, below, name)): units = {0: " B", 1:" KiB", 2:" MiB", 3:" GiB", 4:" TiB", 5:" PiB"} if function == graphingLibrary.bandwidthGraphs: graphingLibrary.bandwidthGraphs(times, bandwidths, iosTime, iosFin,\ hostdirs, sizes, units) elif function == graphingLibrary.networkGraph: graphingLibrary.networkGraph(hostdirs) elif function == graphingLibrary.barGraph: graphingLibrary.barGraph(writeBins, units) elif function == graphPerProcessor: graphPerProcessor(mpiFile, len(hostdirs)-1, average, jobID, above, \ below) logicalFile = hostdirs[0][1] logicalFile = logicalFile.replace("/", "_") plt.savefig('Analysis%s%s.pdf' % (logicalFile, name)) plt.close()
def graph((function, times, bandwidths, iosTime, iosFin, writeBins, \ hostdirs, sizes, mpiFile, average, jobID, \ above, below, name)): units = {0: " B", 1: " KiB", 2: " MiB", 3: " GiB", 4: " TiB", 5: " PiB"} if function == graphingLibrary.bandwidthGraphs: graphingLibrary.bandwidthGraphs(times, bandwidths, iosTime, iosFin,\ hostdirs, sizes, units) elif function == graphingLibrary.networkGraph: graphingLibrary.networkGraph(hostdirs) elif function == graphingLibrary.barGraph: graphingLibrary.barGraph(writeBins, units) elif function == graphPerProcessor: graphPerProcessor(mpiFile, len(hostdirs)-1, average, jobID, above, \ below) logicalFile = hostdirs[0][1] logicalFile = logicalFile.replace("/", "_") plt.savefig('Analysis%s%s.pdf' % (logicalFile, name)) plt.close()