Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3bf8e commit 6461fd9Copy full SHA for 6461fd9
1 file changed
examples/misc/svg_filter_line.py
@@ -52,8 +52,8 @@
52
ax.set_ylim(0., 1.)
53
54
# save the figure as a string in the svg format.
55
-from StringIO import StringIO
56
-f = StringIO()
+from io import BytesIO
+f = BytesIO()
57
plt.savefig(f, format="svg")
58
59
0 commit comments