matplotlib学习笔记_pyplot API
pyplot API汇总
参考:http://c.biancheng.net/matplotlib/pyplot-api.html
pyplot
- jupyter notebook中图像行内显示:
%matplotlib inline - 第一个例子
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
import math
x = np.arange(0,math.pi * 2,0.05)
y = np.sin(x)
plt.plot(x,y)
plt.xlabel('x')
plt.ylabel('sin(x)')
plt.title('wave')
plt.show()
浙公网安备 33010602011771号