How can I generate a series of images of an evolving graph where the vertices do not move between images? Their positions are supposed to be fixed, and it really messes up the animation when they jitter around.
I'm using the python graph-tool package, following the authors' example for animating a epidemic, but I'm not using the Gtk. Instead I'm creating stills with:
from graph_tool.all import *
...
graph_draw(g, pos, output_size = (500, 400),
edge_color = [0.6, 0.6, 0.6, 1],
vertex_fill_color = state,
vertex_halo = newly_infected,
vertex_halo_color = [0.8, 0, 0, 0.6],
output = 'frames/sirs{0:06d}.png'.format(count),
)