AllenDowney / ModSimPy

Text and supporting code for Modeling and Simulation in Python
https://allendowney.github.io/ModSimPy/
MIT License
823 stars 1.76k forks source link

chapter 2 'plot' is not defined #61

Closed Truth1984 closed 3 years ago

Truth1984 commented 3 years ago

plot(results, label='Olin')

should be

plt.plot(results, label='Olin')

AllenDowney commented 3 years ago

What file is this in?

Truth1984 commented 3 years ago

using modsim.py with chapter2 # Plotting

also other chapters have the same problem, like chapter3

maybe should export plot=plt.plot ?

AllenDowney commented 3 years ago

Sorry, I let the chapters get out of sync with the code. This should be working now. Thanks for letting me know!