Exemplo n.º 1
0
def figure2():
    pl.figure(2, figsize=(11, 3))
    pl.clf()
    graphics.plot_grid_puzzle([12, 4], linewidth=2)
    pl.axis('off')
    pl.xticks([])
    pl.yticks([])
    pl.savefig('../tex/fig2.pdf')
    pl.savefig('../fig2.png')
Exemplo n.º 2
0
    def test_graphics(self):
        graphics.plot_nub([0, 0], [1, 0])

        G = data.my_grid_graph([3, 3])
        graphics.plot_puzzle_graph(G, G.pos, diff_degree=1.5)

        graphics.plot_grid_puzzle([3, 4], scale=2)

        graphics.plot_grid_puzzle([4, 4], amp=1)
Exemplo n.º 3
0
    def test_graphics(self):
        graphics.plot_nub([0,0], [1,0])

        G = data.my_grid_graph([3, 3])
        graphics.plot_puzzle_graph(G, G.pos, diff_degree=1.5)

        graphics.plot_grid_puzzle([3,4], scale=2)

        graphics.plot_grid_puzzle([4,4], amp=1)
Exemplo n.º 4
0
def figure2():
    pl.figure(2, figsize=(11,3))
    pl.clf()
    graphics.plot_grid_puzzle([12, 4], linewidth=2)
    pl.axis('off')
    pl.xticks([])
    pl.yticks([])
    pl.savefig('../tex/fig2.pdf')
    pl.savefig('../fig2.png')