0%

pyplot

PyPlot 绘图笔记

改变字体类型

reference: http://blog.csdn.net/ginynu/article/details/70808962

1
2
import matplotlib.pyplot as plt  
plt.rc('font',family='Times New Roman')

自动调整边界范围

reference: https://stackoverflow.com/questions/4042192/reduce-left-and-right-margins-in-matplotlib-plot

1
plt.tight_layout()