Ejemplo n.º 1
0
def display(idx, time, imgName):
    size = s_colorcell
    for i in range(category):
        for j in range(category):
            f = color_2d[i][j]
            f.create_rectangle(0, 0, size, size, fill=colorGrid[i][j], outline=defaultbg)

    # tick mark in 2d color ramp
    for key in coloridDict:
        (h, c) = coloridDict[key][idx]
        g = color_2d[c][h]
        g.create_rectangle(0, 0, size, size, fill=colorGrid[c][h], outline=defaultbg)
        g.create_text(size / 2, size / 2, fill=font_color, font=bd_font, text="x")
    hmap.plotImg(imgName)
    hmap.titleX(time, "TkDefaultFont", "L")

    # display curves
    plotGraph.plotAll(idx, lbound, ubound, lbound_total, ubound_total)
Ejemplo n.º 2
0
def display(idx, time, imgName):
    hmap.plotImg(imgName)
    hmap.titleX(time, "TkDefaultFont", "L")

    # display curves
    plotGraph.plotAll(idx, lbound, ubound, lbound_total, ubound_total)