code: def line(self, x1,y1,x2,y2):
          "Draw a line"
          self._out(sprintf('%.2f %.2f m %.2f %.2f l S',x1*self.k,(self.h-y1)*self.k,x2*self.k,(self.h-y2)*self.k)f line(self, x1,y1,x2,y2):
          "Draw a line"
          self._out(sprintf('%.2f %.2f m %.2f %.2f l S',x1*self.k,(self.h-y1)*self.k,x2*self.k,(self.h-y2)*self.k))
docs: Draw a line