Simple simulator based on pyplot