Skip to content

Commit

Permalink
Fix ImportError: No module named 'StringIO' on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Jan 3, 2016
1 parent 4c3bf8e commit 6461fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/misc/svg_filter_line.py
Expand Up @@ -52,8 +52,8 @@
ax.set_ylim(0., 1.)

# save the figure as a string in the svg format.
from StringIO import StringIO
f = StringIO()
from io import BytesIO
f = BytesIO()
plt.savefig(f, format="svg")


Expand Down

0 comments on commit 6461fd9

Please sign in to comment.