Lines 6–10 define the four functions to be plotted. 1 I don’t remember where I first learned about it-Stack Overflow would be a good guess-but I’ve since learned that pyplot.subplots is basically a combination of pyplot.figure and Figure.subplots. It’s possible that this technique was new to me because the documentation for Matplotlib’s Pyplot API doesn’t contain an entry for subplots. What was new to me was the use of the pyplot.subplots function to generate both the overall figure and the grid of subplots in one fell swoop. When I learn something new in Matplotlib, I usually write a short post about it to reinforce what I’ve learned and to give me a place to look it up when I need to do it again. Next post Previous post Subplots, axes, Matplotlib, OmniGraffle, and LaTeXiT
0 Comments
Leave a Reply. |