matplotlib 案例:一张画布内画cosx、sinx、tanhx函数 import numpy as np import matplotlib.pyplot as plt x=np.linspace(-10,10) y=np.cos(x) #