- Open up
Contours_with_matplotlib.py
. Find the cell that reads
def f(x, y):
return #your function here
and write your own custom function in here! You can be creative: Maybe you want to want to see what happens when f(x,y) is a quadratic function, or an average, or an exponent or log?
You can also change the input variables (x
and y
).
-
Replot your contour maps with your new function. (Make sure to rerun the code block that generates
z
with this newf(x,y)
!). -
If you have time, practice changing the contour levels or create filled in contours with colorbars.
-
Switch to Atom and open
matplotlib_contours_practice.py
. -
Follow the instructions to make contour maps of SLA.