Understanding the Matplotlib API hierarchy