Matplotlib has a few dozen plotting methods that make nearly any kind of plot imaginable. Line, bar, histogram, scatter, box, violin, contour, pie, and many more plots are available as methods from the Axes object. It was only in version 1.5 (released in 2015) that matplotlib began accepting data from pandas DataFrames. Before this, data had to be passed to it from NumPy arrays or Python lists.
Visualizing data with matplotlib
Getting ready
In this recipe, we will visualize the trend in movie budgets over time by reducing our data from pandas DataFrames down to NumPy arrays, which we will then pass to matplotlib plotting functions.