for line in IN_FILE: if line[0] != "#": a = line.strip().split("\t") if len(a[0]) > 0: if len(a) == 1: a.append(a[0]) sys.stderr.write("%s %s \n" % (a[0], a[1])) filename = a[0] if len(a) == 3: selectedcolor = a[2] else: selectedcolor = COLORS[n % len(COLORS)] spectrum = loadfile(filename) if spectrum != []: plotme(spectrum, label=a[1], color=selectedcolor, thresholdlist=listofthresholds, numplots=numplots, dump=OPTS.dump, shaded=SHADED) n = n + 1 if OPTS.suppresslegend == 0: plt.legend(loc="upper left") plt.savefig(OUTFILE) else: # for v in ARGS: # print("#", v) # filename = v # spectrum = loadfile(filename) # plotme(spectrum, filename, thresholdlist=listofthresholds, # color=COLORS[n], dump=OPTS.dump, numplots=len(ARGS), shaded=SHADED) # n = n + 1 # plt.legend(loc="upper left") sys.stderr.write(
def test_plotmeS(): p = plotme(FIXTURE, "templabel", shaded=2, suppress=True) p = plotme(FIXTURE2, "templabel", shaded=2, suppress=True)
def test_plotme4(): p = plotme(FIXTURE, "templabel", shaded=4) p = plotme(FIXTURE2, "templabel", shaded=4)
def test_plotmeT(): p = plotme(FIXTURE, "templabel", shaded=2, thresholdlist=[1, 10, 100]) p = plotme(FIXTURE2, "templabel", shaded=2, thresholdlist=[1, 10, 100])
def test_plotmeD(): p = plotme(FIXTURE, "templabel", shaded=2, dump=True) p = plotme(FIXTURE2, "templabel", shaded=2, dump=True)
a = line.strip().split("\t") if len(a[0]) > 0: if len(a) == 1: a.append(a[0]) sys.stderr.write("%s %s \n" % (a[0], a[1])) filename = a[0] if len(a) == 3: selectedcolor = a[2] else: selectedcolor = COLORS[n % len(COLORS)] spectrum = loadfile(filename) if spectrum != []: plotme(spectrum, label=a[1], color=selectedcolor, thresholdlist=listofthresholds, numplots=numplots, dump=OPTS.dump, shaded=SHADED) n = n + 1 if OPTS.suppresslegend == 0: plt.legend(loc="upper left") plt.savefig(OUTFILE) else: # for v in ARGS: # print("#", v) # filename = v # spectrum = loadfile(filename) # plotme(spectrum, filename, thresholdlist=listofthresholds, # color=COLORS[n], dump=OPTS.dump, numplots=len(ARGS), shaded=SHADED) # n = n + 1