Skip to content

Commit

Permalink
Merge pull request #5788 from cgohlke/patch-1
Browse files Browse the repository at this point in the history
Fix svg examples in python 3
  • Loading branch information
tacaswell committed Jan 7, 2016
2 parents e035cf9 + 4d78ae6 commit cf38ed7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/misc/svg_filter_line.py
Expand Up @@ -52,7 +52,7 @@
ax.set_ylim(0., 1.)

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

Expand Down
2 changes: 1 addition & 1 deletion examples/misc/svg_filter_pie.py
Expand Up @@ -42,7 +42,7 @@


# save
from StringIO import StringIO
from io import StringIO
f = StringIO()
plt.savefig(f, format="svg")

Expand Down
2 changes: 1 addition & 1 deletion examples/user_interfaces/svg_histogram.py
Expand Up @@ -35,7 +35,7 @@
import numpy as np
import matplotlib.pyplot as plt
import xml.etree.ElementTree as ET
from StringIO import StringIO
from io import StringIO
import json

plt.rcParams['svg.embed_char_paths'] = 'none'
Expand Down
2 changes: 1 addition & 1 deletion examples/user_interfaces/svg_tooltip.py
Expand Up @@ -24,7 +24,7 @@

import matplotlib.pyplot as plt
import xml.etree.ElementTree as ET
from StringIO import StringIO
from io import StringIO

ET.register_namespace("", "http://www.w3.org/2000/svg")

Expand Down

0 comments on commit cf38ed7

Please sign in to comment.