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')
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)
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)
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')