Custom plots broken on hardy (LineCollection instance has no attribute 'get_lines')
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openWNS Wrowser |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I tried to use the new export to Python function on hardy. The export itself works well, but after starting the script in a shell I get the following error in matplotlib. Version information is below
# python hansl.py
Accessing charts from database server with campaignId: 1586
Reading Campaign
Creating Facade: done
Found 2370 scenarios
Plotting: hansl
Traceback (most recent call last):
File "hansl.py", line 55, in <module>
if __name__ == '__main__': wrowser.
File "/home/
savefig(
File "/usr/lib/
return fig.savefig(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
**kwargs)
File "/usr/lib/
return pdf.print_
File "/usr/lib/
self.
File "/usr/lib/
for a in self.axes: a.draw(renderer)
File "/usr/lib/
a.draw(
File "/usr/lib/
self.
File "/usr/lib/
ox, oy = self._find_
File "/usr/lib/
verts, bboxes, lines = self._auto_
File "/usr/lib/
hlines = handle.get_lines()
AttributeError: LineCollection instance has no attribute 'get_lines'
# python
Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Matplotlib
>>> import matplotlib
>>> print matplotlib.
0.91.2
>>>
Can you please try to make this work on hardy?
Regards,
Daniel
Hi Daniel,
can you please try to create a png file instead of the pdf file? To do so you can export with wrowser revision 63 (or you use an older revision and edit FigurePlotter.py) . In the generated script you can specify the output formats. I would like to know if this is only a problem with the pdf backend.
Another question: Did the script run on karmic without problems?
Best regards,
Ramin