springer-math / Mathematics-of-Epidemics-on-Networks

Source code accompanying 'Mathematics of Epidemics on Networks' by Kiss, Miller, and Simon http://www.springer.com/us/book/9783319508047 . Documentation for the software package is at https://epidemicsonnetworks.readthedocs.io/en/latest/
MIT License
151 stars 61 forks source link

add animation #16

Closed joelmiller closed 6 years ago

joelmiller commented 6 years ago

create animation. Main image should be graph changing in time. On side include plot with S, I, and R with bar showing advance of time.

animate(display_times, t, full_data, SIR=True, pos =None, colorS=X, colorI = Y, colorR=Z)

include optional keywords for nx.draw.

joelmiller commented 6 years ago

This is currently in progress. Want to have the ability to add plots to the time series.

joelmiller commented 6 years ago

done with 0.99.1

chengjun commented 5 years ago

I would be great to support interactive visualization:

  from ipywidgets import interact, fixed
  interact(sim.display, time=[0, 10], node_size = 4 )