简单的matplotlib相关实用函数。
plotutils的Python项目详细描述
plotutils
==
在
matplotlib中:
>;>from plotutils import setfig
>;
在我编写的每个使
绘图的函数中使用“setfig”函数,几乎总是如下:
…代码块::python
import matplotlib.pyplot as plt
def my_plot(x,y,fig=none,**kwargs):
setfig(fig)
plt.plot(x,y,**kwargs)
==
在
matplotlib中:
>;>from plotutils import setfig
>;
在我编写的每个使
绘图的函数中使用“setfig”函数,几乎总是如下:
…代码块::python
import matplotlib.pyplot as plt
def my_plot(x,y,fig=none,**kwargs):
setfig(fig)
plt.plot(x,y,**kwargs)