November 2018
Beginner to intermediate
214 pages
5h 2m
English
Let's start by importing everything we need:
import numpy as npimport matplotlib as mplimport matplotlib.pyplot as plt%matplotlib inline# Set up figure size and DPI for screen demoplt.rcParams['figure.figsize'] = (6,4)plt.rcParams['figure.dpi'] = 150
# Add some textnums = np.arange(0,10,0.1)plt.plot(nums, np.sin(nums))
We will get the following output:

Read now
Unlock full access