Saving to svg fails with use of textcomp character
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
matplotlib |
New
|
Unknown
|
|||
matplotlib (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The following code (under standard packages of Ubuntu 15.04)
from pylab import *
pp={'text.usetex': True,
}
rcParams.update(pp)
plot(1,1)
ylabel(r'\textwon')
savefig('tmp.pdf')
print('Saved pdf')
savefig('tmp.png')
print('Saved png')
savefig('tmp.svg')
print('Saved svg')
gives output:
Saved pdf
Saved png
/usr/lib/
"be wrong" % (glyph, font_bunch.
Saved svg
While the files pdf and png have the \textwon character properly rendered, it is missing from the svg.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: python-matplotlib 1.4.2-3.1
ProcVersionSign
Uname: Linux 3.19.0-10-generic x86_64
ApportVersion: 2.16.2-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 30 11:24:28 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-03-28 (1 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Beta amd64 (20150325)
SourcePackage: matplotlib
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in matplotlib: | |
status: | Unknown → New |
Behaviour is even worse after my upgrade 16.04:
The following crashes ipython:
pp={'text.usetex': True, 'text.latex. unicode' : True,}
rcParams.update(pp)
plot(1,1)
ylabel(r'\textwon')