示例#1
0
def animate(nframe):
    G = Vmaze_NHT.from_file(input_name_format % nframe)
    fig = G.make_report(axes=axes)
    fig.savefig("_tmp_%02d.jpeg" % nframe)
示例#2
0
# This script shows how to make a canvas with the editor,
# save it, and load it later ::
    
from vmfactory import Vmaze
from vmfactory.canvas import canvas_editor
canvas = canvas_editor() # will open an interactive session.
# For when the session has ended:
maze = Vmaze(canvas)
maze.to_file('mycanvas.can')

# Later:
from vmfactory import Vmaze_NHT
maze_nht = Vmaze_NHT.from_file('mycanvas.can')
maze_nht.draw_quick()
示例#3
0
def animate(nframe):
    G = Vmaze_NHT.from_file(input_name_format % nframe)
    fig = G.make_report(axes=axes)
    fig.savefig("_tmp_%02d.jpeg"%nframe)