plt.figure(figsize=[6, 6])
x = np.arange(0, 100, 1e-05)
y = x * np.sin(2 * pi * x)
plt.plot(y)
plt.axis('off')
plt.gca().set_position([0, 0, 1, 1])
plt.savefig('test.svg')
How can I get the output of a matplotlib plot as an SVG?