Skip to content

Instantly share code, notes, and snippets.

@theengineear
Last active August 29, 2015 14:00
Show Gist options
  • Save theengineear/11263129 to your computer and use it in GitHub Desktop.
Save theengineear/11263129 to your computer and use it in GitHub Desktop.
%matplotlib inline
import matplotlib.pyplot as plt
import io
fig, ax = plt.subplots()
ax.plot([1,2,3])
fig.savefig(io.BytesIO(), format='svg', dpi=fig.dpi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment