Plot delhi, save the figure as SVG into an io.StringIO buffer instead of a file…

Matplotlib · from Showing and saving

plt.showfig.savefigbbox_inchesdpiplt.closematplotlib.use

Putting the kettle on…

Starting up…

Exercise 2

Plot delhi, save the figure as SVG into an io.StringIO buffer instead of a file, and return the first 5 characters of what came out.

your answer
stuck? the lesson behind it
Showing and saving
Backends, the blank-file trap, and getting a file worth sending