在将matplotlib图保存为图像时,我遇到了问题。图像保存的方式与调用图形上的.show()方法时显示的不同。这里有一个例子:这是我的全部代码。import matplotlib.pyplot as pltturn = 1 #for the x values def __init,我只是觉得plt.show()和plt.<e
我试图保存一个在IPython内联中运行良好的图形,但不将该图形保存到磁盘中,其中包含轴和标题。有什么想法吗这里可能出了什么问题?import matplotlib.pylab as plt y = map(lambda(x): x * 2, x)ax = fig.add_axes([0,0,1,1])ax