Save plot `plt` as svg file 'test.svg',plt.savefig('test.svg')