Fixed drawing phase charts with lines enabled looking all wonky.

pull/17/head
Rune B. Broberg 2019-09-18 11:31:09 +02:00
rodzic 5626dab14d
commit ffd12332b4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -221,7 +221,7 @@ class PhaseChart(Chart):
y = 30 + round((angle-minAngle)/span*(self.chartHeight-10))
qp.drawPoint(int(x), int(y))
if self.drawLines and i > 0:
angle = -self.angle(self.data[i-1])
angle = self.angle(self.data[i-1])
prevx = self.leftMargin + 1 + round(self.chartWidth / len(self.data) * (i-1))
prevy = 30 + round((angle - minAngle) / span * (self.chartHeight - 10))
qp.setPen(line_pen)