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 02c1c3a commit e951bd6Copy full SHA for e951bd6
1 file changed
examples/user_interfaces/svg_tooltip.py
@@ -24,7 +24,7 @@
24
25
import matplotlib.pyplot as plt
26
import xml.etree.ElementTree as ET
27
-from StringIO import StringIO
+from io import BytesIO
28
29
ET.register_namespace("", "http://www.w3.org/2000/svg")
30
@@ -72,7 +72,7 @@
72
ax.set_ylim(-30, 30)
73
ax.set_aspect('equal')
74
75
-f = StringIO()
+f = BytesIO()
76
plt.savefig(f, format="svg")
77
78
# --- Add interactivity ---
0 commit comments