日常写论文,有些数据需要可是化,现在将matplotlib.pyplot模块总结如下:
import numpy as np
import matplotlib.pyplot as plt
a = plt.subplot(1,1,1)
x = np.arange(0.,3.,0.1)
#这里b表示blue,g表示green,r表示red,-表示连接线,--表示虚线链接
a1 = a.plot(x, x, 'bx-', label = 'line 1')
a2 = a.plot(x, x**2, 'g^-', label = '