Guest User

ps8_help calling pylab plot

a guest
Jan 1st, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. import pylab
  2. import random
  3. import ps8_help
  4.  
  5. if __name__ == '__main__':
  6.     random.seed(0)
  7.     x, y = ps8_help.simulationWithDrug(100, 1000, 0.1, 0.05,
  8.                                            {'guttagonol': False}, 0.005, 100, timing=True)
  9.     pylab.plot(x, 'r', label='Total')
  10.     pylab.plot(y, label='Resistant')
  11.     pylab.title('Resistence and single medication from midpoint')
  12.     pylab.xlabel('Timestep')
  13.     pylab.ylabel('Virus population size')
  14.     pylab.legend()
  15.     pylab.show()
Advertisement
Add Comment
Please, Sign In to add comment