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

Getting ready

Let's import the required libraries:

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import (MultipleLocator, FormatStrFormatter,
AutoMinorLocator)
from matplotlib.ticker import FuncFormatter