Skip to content

Commit

Permalink
Fixed float/int issue in pyqtplot.canvas.py for fontSize (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
John authored Mar 24, 2022
1 parent 50ab6aa commit 51c4d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keithleygui/pyqtplot_canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def setTitle(self, text, fontScaling=None, color=None, font=None):
if fontScaling is not None:
font = self.p.titleLabel.item.font()
defaultFontSize = QtWidgets.QLabel("test").font().pointSize()
fontSize = round(defaultFontSize * fontScaling, 1)
fontSize = round(defaultFontSize * fontScaling)
font.setPointSize(fontSize)
self.p.titleLabel.item.setFont(font)

Expand Down

0 comments on commit 51c4d1f

Please sign in to comment.