-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
1. Run gantt example
from svgplotlib.Gantt import *
items = []
items.append(Duration('Item 1', date(2009, 1, 4), date(2009, 8, 10), '90%'))
items.append(Duration('Item 2', date(2009, 3, 11), date(2009, 8, 17), '50%'))
items.append(Duration('Item 3', date(2009, 4, 18), date(2009, 8, 24), '70%'))
items.append(Duration('Item 4', date(2009, 5, 25), date(2009, 8, 31), '10%'))
items.append(Duration('Item 4', date(2009, 5, 25), date(2009, 9, 27), '25%'))
gantt = Gantt(items)
What is the expected output?
SVG Gantt
What do you see instead?
Traceback (most recent call last):
File "getGraphFromPPT.py", line 476, in <module>
graph = Gantt(items)
File "C:\Python26\lib\site-packages\svgplotlib\Gantt.py", line 102, in __init__
name_width, HEIGHT = draw_names()
File "C:\Python26\lib\site-packages\svgplotlib\Gantt.py", line 74, in draw_names
size = self.textSize(u'Name')
File "C:\Python26\lib\site-packages\svgplotlib\__init__.py", line 53, in textSize
self.font.set_text(text)
File "freetype.pyx", line 271, in svgplotlib.freetype.FT2Font.set_text (svgplotlib\freetype.c:3991)
File "freetype.pyx", line 302, in svgplotlib.freetype.FT2Font.set_text (svgplotlib\freetype.c:3595)
TypeError: an integer is required
What version of the product are you using?
svgplotlib-0.2.win32-py2.6.exe
On what operating system?
Windows XP
Please provide any additional information below.
Original issue reported on code.google.com by aussie.s...@gmail.com on 6 Sep 2012 at 10:15
Attachments: