|
From: death j. <dea...@ya...> - 2013-07-05 16:44:57
|
Hello list,
I have LineCollection object: "l = matplotlib.collections.LineCollection()" which I want to save as image without any kind of margins.
What have I tried is following:
ax = plt.subplot(111)
ax.set_axis_off()
ax.add_collection(l)
ax.autoscale_view()
plt.savefig('img.png')
but there are still unwanted margins.
How to plot without margins?
Thanks
|