摘要:
import matplotlib.pyplot as pltimport numpy as npimport pandas as pdy= np.arange(1,5)plt.plot(y,y*y)plt.grid(True)plt.grid(color='r',linestyle='--')#修改网格颜色,类型为虚线plt.show() import matplotlib.pyplot... 阅读全文
摘要:
import matplotlib.pyplot as pltimport numpy as npimport pandas as pdx=np.arange(1,100)fig=plt.figure()ax1=fig.add_subplot(221) #2*2的图形 在第一个位置ax1.plot(x,x)ax2=fig.add_subplot(222)ax2.plot(x,-x)ax3=fig... 阅读全文