December 2017
Intermediate to advanced
386 pages
10h 42m
English
The script starts by importing the required libraries with the following code:
import numpy as npimport matplotlibmatplotlib.use('Qt5Agg')import matplotlib.pyplot as plt
The order or the commands is important here. We first import Matplotlib and then issue the matplotlib.use(Qt5Agg) call to select the Qt5Agg backend. After selecting the backend, we import pyplot.
The next lines of code generate the data and create the plot. As the plot is defined, no output is actually generated. To display the plot, we need to call the show() ...
Read now
Unlock full access