From the course: Data Visualization with Matplotlib and Seaborn

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Plotting methods

Plotting methods

- [Instructor] There are two primary methods for building plots within matplotlib. You might also hear these described as interfaces or frameworks, but let's go ahead and take a look at the two methods. The two methods we can use are the pyplot API, or object oriented plotting. With the pyplot API, charts are created with the plot function and modified with additional functions. Up until this point, the charts that we've built have been built with the pyplot API. The pyplot API is great for building quick prototypes or just quickly exploring data without the need for a ton of code. If you've worked with pandas plotting, so dataframe.plot, this is actually relying on the pyplot API underneath the hood. The second method, object-oriented plotting is a little bit different. In this method, charts are created by defining a plot object and modified using figure and axis methods. Don't worry if you don't understand this terminology yet. By the end of this course, you'll probably be sick of…

Contents