matplotlib pdf generation fails with tex text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
matplotlib |
Fix Released
|
Undecided
|
Unassigned | ||
matplotlib (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Hardy |
Won't Fix
|
Undecided
|
Unassigned | ||
Intrepid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-matplotlib
When trying to save a pdf file, here is what I get:
Traceback (most recent call last):
File "./mkgraph", line 272, in <module>
pylab.
File "/usr/lib/
return fig.savefig(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
**kwargs)
File "/usr/lib/
orientation, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
for a in self.axes: a.draw(renderer)
File "/usr/lib/
a.draw(
File "/usr/lib/
tick.
File "/usr/lib/
if self.label1On: self.label1.
File "/usr/lib/
Text.draw(self, renderer)
File "/usr/lib/
canvasw, canvash = renderer.
File "/usr/lib/
return d*self.file.width, d*self.file.height
AttributeError: PdfFile instance has no attribute 'width'
Related branches
Changed in matplotlib: | |
milestone: | none → intrepid-alpha-1 |
milestone: | intrepid-alpha-1 → none |
milestone: | none → intrepid-alpha-1 |
Changed in matplotlib: | |
status: | New → Fix Released |
pdf seems to be not officially supported, see:
http:// matplotlib. sourceforge. net/backends. html
I'd recommend using eps and converting with ps2pdf.