From the course: Python Data Visualization: Create Impactful Visuals, Animations, and Dashboards by Pearson
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Explore the Matplotlib API - Python Tutorial
From the course: Python Data Visualization: Create Impactful Visuals, Animations, and Dashboards by Pearson
Explore the Matplotlib API
Now, we're going to see exactly how the API works and how it leverages the concepts and definitions we just discussed. The figure object, as we mentioned, represents the full figure, and it's this object that controls the way in which the figure is displayed, and how it appears in the final product. It has a series of methods or a number of methods that we're going to be using. In particular, gca get current access will return the current access object. So this is the access object for which any calls will get redirected to. In the case of multiple access objects, multiple subplots for the figure, you can have more than one access object, and this will return whichever one is active right now. The .show method will display the figure in your screen, for example, or in your notebook. And finally, the SaveFig method allows you to save the figure in some type of format. Typically, the format is identified by the extension of the file name that you provide. You can also specify the…
Contents
-
-
-
-
-
-
(Locked)
Topics33s
-
(Locked)
Fundamental components of a Matplotlib plot5m 33s
-
(Locked)
Explore the Matplotlib API8m 14s
-
(Locked)
Demo, part 122m 42s
-
(Locked)
Demo, part 221m 33s
-
(Locked)
Demo, part 325m 58s
-
(Locked)
Stylesheets4m 39s
-
(Locked)
Demo8m 26s
-
(Locked)
Mapping10m 21s
-
(Locked)
Demo24m 9s
-
(Locked)
-
-
-
-
-
-