The following sample code will produce a basic line plot with no axis and save it as an SVG file:
import matplotlib.pyplot as plt
plt.axis('off')
plt.plot([1,3,1,2,3])
plt.plot([3,1,1,2,1])
plt.savefig("out.svg", transparent = True)
Question 1) How do I set the resolution / dimensions off the image?
Qestiion 2) There is padding on all sides of the image before the line graph appears. How do I remove the padding so that the lines appear on the edge of the image?
[http://engage.neven.info/out.svg]