Skip to content

examples svg_histogram.html failes with UnicodeEncodeError #6201

Closed
@altsheets

Description

@altsheets

Your example fails with a UnicodeEncodeError

python svg_histogram.py

results in:

Traceback (most recent call last):
  File "svg_histogram.py", line 83, in <module>
    tree, xmlid = ET.XMLID(f.getvalue())
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1316, in XMLID
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1640, in feed
    self._parser.Parse(data, 0)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2212' in position 6447: ordinal not in range(128)

Thanks!

  • Matplotlib version '1.5.1', Python version 2.7.9 on both platforms Windows, & Linux
  • pip install matplotlib

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions