Skip to content

Commit

Permalink
Proper plotting of closewq L values in L-series measurement
Browse files Browse the repository at this point in the history
Fixes #408
  • Loading branch information
rjordans committed Sep 14, 2021
1 parent 8bece25 commit d6aaf42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NanoVNASaver/Charts/Inductance.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class InductanceChart(FrequencyChart):
def __init__(self, name=""):
super().__init__(name)
self.leftMargin = 30
self.leftMargin = 45
self.dim.width = 250
self.dim.height = 250
self.minDisplayValue = 0
Expand Down Expand Up @@ -120,7 +120,7 @@ def drawValues(self, qp: QtGui.QPainter):
self.span = span

target_ticks = math.floor(self.dim.height / 60)
fmt = Format(max_nr_digits=1)
fmt = Format(max_nr_digits=3)
for i in range(target_ticks):
val = minValue + (i / target_ticks) * span
y = self.topMargin + round((self.maxValue - val) / self.span * self.dim.height)
Expand Down

0 comments on commit d6aaf42

Please sign in to comment.