kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
Fixed drawing phase charts with lines enabled looking all wonky.
rodzic
5626dab14d
commit
ffd12332b4
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue