swcarpentry / python-novice-inflammation

Programming with Python
http://swcarpentry.github.io/python-novice-inflammation/
Other
300 stars 780 forks source link

Lesson 1 - pyplot not a library #665

Open HeatherAn opened 5 years ago

HeatherAn commented 5 years ago

At the end of lesson 1 (Key Points) the last point says: 'Use the pyplot library from matplotlib for creating simple visualizations'. I guess this is a typo (?). Pyplot is a module of the matplotlib library.

maxim-belkin commented 5 years ago

At the end of lesson 1 (Key Points) the last point says: 'Use the pyplot library from matplotlib for creating simple visualizations'. I guess this is a typo (?). Pyplot is a module of the matplotlib library.

matplotlib is a "package", and pyplot is a "library module" (or simply "module") within that package. These terminology differences are not important for our lesson and referring to both of them as "libraries" is permissible and desirable -- in the end, both "packages" and "modules" can be imported.