将地块保存为PDF

将地块保存为PDF,第1张

地块保存为PDF

没关系,有办法做到这一点

def plotGraph(X,Y):     fignum = random.randint(0,sys.maxint)     fig = plt.figure(fignum)     ### Plotting arrangements ###     return fig

------绘图模块------

----- mainModule ----

 import matplotlib.pyplot as plt ### tempDLStats, tempDLlabels are the argument plot1 = plotGraph(tempDLstats, tempDLlabels) plot2 = plotGraph(tempDLstats_1, tempDLlabels_1) plot3 = plotGraph(tempDLstats_2, tempDLlabels_2) plt.show() plot1.savefig('plot1.png') plot2.savefig('plot2.png') plot3.savefig('plot3.png')

----- mainModule -----



欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5643977.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存