Mon, 04 Feb 2008 19:19:32 +0100
constant adjustments for string plots
plotter/hpgl_qt.py | file | annotate | diff | comparison | revisions |
--- a/plotter/hpgl_qt.py Mon Feb 04 19:02:42 2008 +0100 +++ b/plotter/hpgl_qt.py Mon Feb 04 19:19:32 2008 +0100 @@ -116,11 +116,11 @@ self.qscene.removeItem(t0) # don't ask me why theses constants are here, they seem OK, that's all t = self.qscene.addSimpleText(s, self.qfont) - t.scale(1.1 * cw/mw, -1.6 * ch/mh) + t.scale(1.0 * cw/mw, -1.6 * ch/mh) x, y = self.pos t.moveBy(x,y) br = t.boundingRect() - t.moveBy(-0.5*cw, math.sqrt(2)*ch) + t.moveBy(-0.5*cw+8, math.sqrt(2)*ch - 13) if __name__=='__main__':