Example #1
0
def plot_2vfunc_domain(plot_lst):
    inf_lst = extract_information2v(plot_lst)
    fig = plt.figure(figsize=(10, 10))
    ax = SubplotZero(fig, 111)
    fig.add_subplot(ax)
    # fun_name = inf_lst[1]
    for i in inf_lst:
        bound_color = i[0]
        # print i
        xy_x = i[1][0][0][0]
        xy_y = i[1][0][0][1]
        lgt = i[1][0][1]
        hgt = i[1][0][2]
        rect = plt.Rectangle((xy_x, xy_y),
                             lgt,
                             hgt,
                             fill=True,
                             facecolor=bound_color,
                             edgecolor='red',
                             linewidth=0)
        ax.add_patch(rect)
    # plt.ylim((-0.25, 0.25))
    plt.xlim((-2150, 2150))
    plt.ylim((-2150, 2150))
    plt.show()
Example #2
0
def plot_1func_domain(plot_lst):
    inf_lst = extract_information(plot_lst)
    fig = plt.figure(figsize=(25, 2))
    ax = SubplotZero(fig, 111)
    fig.add_subplot(ax)
    for i in inf_lst:
        bound_color = i[0]
        print i
        xy_x = i[1][0][0][0]
        xy_y = i[1][0][0][1]
        lgt = i[1][0][1]
        rect = plt.Rectangle((xy_x, xy_y),
                             lgt,
                             0.5,
                             fill=True,
                             facecolor=bound_color,
                             edgecolor=bound_color,
                             linewidth=0)
        ax.add_patch(rect)
    plt.ylim((-0.25, 0.25))
    plt.xlim((-2150, 2150))
    plt.yticks([])
    # plt.savefig("graph2/" + fun_name + ".pdf", format="pdf")
    plt.savefig("papergraph/" + "erfbdvals.eps", format="eps")
    # plt.close()
    plt.show()