October 2018
Beginner to intermediate
676 pages
18h 30m
English
Import the following libraries for the pyplot API:
import pandas as pdimport matplotlib.pyplot as plt
Import the following libraries for an object-oriented API:
import pandas as pdfrom matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvasfrom matplotlib.figure import Figurefrom IPython.core.display import display
matplotlib.backends has a set of backends that it supports. Here, we are importing FigureCanvasAgg, which provides the space for plotting the figure and maps it to the defined backend device.
IPython.core.display enables displaying the plot onto the output device.
Read now
Unlock full access