Matplotlib 3.0 Cookbook
上QQ阅读APP看书,第一时间看更新

Getting ready

Import the required libraries. Two new packages, Path and patches, will be introduced here:

import matplotlib.pyplot as plt
from matplotlib.path import Path
import matplotlib.patches as patches