Merge pull request #485 from cboulay/VTickGroup_fixHeight

Fixed incorrect height in VTickGroup.
This commit is contained in:
Luke Campagnola 2017-05-24 17:48:48 -07:00 committed by GitHub
commit af4c6735ea

View File

@ -90,7 +90,7 @@ class VTickGroup(UIGraphicsItem):
br = self.boundingRect()
h = br.height()
br.setY(br.y() + self.yrange[0] * h)
br.setHeight(h - (1.0-self.yrange[1]) * h)
br.setHeight((self.yrange[1] - self.yrange[0]) * h)
p.translate(0, br.y())
p.scale(1.0, br.height())
p.setPen(self.pen)