1, pyplot 实例
%matplotlib inline
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 2, 100)
plt.plot(x, x, label='linear')
plt.plot(x, x**2, label='quadratic')
plt.plot(x, x**3, label='cubic')
plt.xlabel('x label')
plt.ylabel('y label')
# plt.xlim([0,2])
# plt.ylim([0, 8])
plt.title("title")
plt.legend(loc='upper left')
plt.show()