X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da8d6ffa5790529ae784345cb4441a3956751193..72b1ad5c2e42a19e24460c196b47ea54e34d8c2c:/wxPython/wx/lib/plot.py diff --git a/wxPython/wx/lib/plot.py b/wxPython/wx/lib/plot.py index 946b5bdf28..109f89331a 100644 --- a/wxPython/wx/lib/plot.py +++ b/wxPython/wx/lib/plot.py @@ -978,7 +978,7 @@ class PlotCanvas(wx.Window): dc.SetPen(wx.Pen(wx.BLACK)) dc.SetBrush(wx.Brush( wx.WHITE, wx.TRANSPARENT ) ) dc.SetLogicalFunction(wx.INVERT) - dc.DrawRectangle( (ptx,pty), (rectWidth,rectHeight)) + dc.DrawRectangle( ptx,pty, rectWidth,rectHeight) dc.SetLogicalFunction(wx.COPY) dc.EndDrawing() @@ -1136,7 +1136,7 @@ class PlotPrintout(wx.Printout): return False def GetPageInfo(self): - return (0, 1, 1, 1) # disable page numbers + return (1, 1, 1, 1) # disable page numbers def OnPrintPage(self, page): dc = FloatDCWrapper(self.GetDC()) # allows using floats for certain functions @@ -1204,16 +1204,16 @@ class FloatDCWrapper: self.theDC = aDC def DrawLine(self, x1,y1,x2,y2): - self.theDC.DrawLine((int(x1),int(y1)),(int(x2),int(y2))) + self.theDC.DrawLine(int(x1),int(y1), int(x2),int(y2)) def DrawText(self, txt, x, y): - self.theDC.DrawText(txt, (int(x), int(y))) + self.theDC.DrawText(txt, int(x), int(y)) def DrawRotatedText(self, txt, x, y, angle): - self.theDC.DrawRotatedText(txt, (int(x), int(y)), angle) + self.theDC.DrawRotatedText(txt, int(x), int(y), angle) def SetClippingRegion(self, x, y, width, height): - self.theDC.SetClippingRegion((int(x), int(y)), (int(width), int(height))) + self.theDC.SetClippingRegion(int(x), int(y), int(width), int(height)) def SetDeviceOrigin(self, x, y): self.theDC.SetDeviceOrigin(int(x), int(y))