code: def rotate(self, angle, x=0, y=0):
          
          self.root.set("transform", "%s rotate(%f %f %f)" %
                        (self.root.get("transform") or '', angle, x, y))
docs: Rotate element by given angle around given pivot.
  
          Parameters
          ----------
          angle : float
              rotation angle in degrees
          x, y : float
              pivot coordinates in user coordinate system (defaults to top-left
              corner of the figure)