Question: what is ax in pyplot?
Answer: ax can be either a single Axes object or an array of Axes objects if more than one subplot was created. The dimensions of the resulting array can be controlled with the squeeze keyword, see above. See also pyplot.figure pyplot.subplot pyplot.axes Figure.subplots Figure.add_subplot. Examples.