PON 2021: Coding basics (Python) | Part 4 - Overview
one-liners | matplotlib | pyplot
Slides:
Downloads:
To code along, just create your own new Jupyter Notebook. In the first cell, import Numpy, Matplotlib and Pyplot:
import numpy as np
import matplotlib as mpl # optional
import matplotlib.pyplot as plt
- plotting-notebook-after-class.ipynb The few live examples shown during class
- plotting-examples.ipynb Some more complex examples with explanations.
- slide-figures.ipynb Jupyter Notebook to create examples used in the slides
Homework:
Homework is always optional but a great way of practicing what you have learned during the course.
If you have questions, send them via e-mail. I might either respond to you individually or address common questions at the beginning of next the session.
Downloads (right-click & save as):
- homework-part4.ipynb (Jupyter Notebook)
- homework-part4-solution.ipynb (Jupyter Notebook with "solutions")
- weather.npz (data) (same as for Part 3)
In this homework you will continue your work from last week with weather data from NYC Central Park.
Use the same Notebook (or a copy), and add the necessary import
s at the top.
Please feel free to plot whatever you want to see and explore how the data looks like.
Of course, you find ideas in the Jupyter Notebook (and their solutions if you need them, separately)