Commit a299f64b authored by Florent Desnous 's avatar Florent Desnous
Browse files

corrected viewer.py:draw() function

parent a0f1afa7
......@@ -129,10 +129,10 @@ class PlotDiar:
x = row['start'] / 100
self.time_stamp.append(x)
self.time_stamp.append(row['stop'] / 100)
w = row.length() / 100
w = row.duration() / 100
self.maxx = max(self.maxx, row['stop'] / 100)
c = self.rect_color
if row._attr_names.exist('color'):
if row._attributes.exist('color'):
c = row['color']
rect = plot.Rectangle((x, y), w, self.height,
color=c, picker=self.pick)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment