示例#1
0
        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(
示例#2
0
def test_plotmeS():
    p = plotme(FIXTURE, "templabel", shaded=2, suppress=True)
    p = plotme(FIXTURE2, "templabel", shaded=2, suppress=True)
示例#3
0
def test_plotme4():
    p = plotme(FIXTURE, "templabel", shaded=4)
    p = plotme(FIXTURE2, "templabel", shaded=4)
示例#4
0
def test_plotmeT():
    p = plotme(FIXTURE, "templabel", shaded=2, thresholdlist=[1, 10, 100])
    p = plotme(FIXTURE2, "templabel", shaded=2, thresholdlist=[1, 10, 100])
示例#5
0
def test_plotmeD():
    p = plotme(FIXTURE, "templabel", shaded=2, dump=True)
    p = plotme(FIXTURE2, "templabel", shaded=2, dump=True)
示例#6
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