code: def mouse_rotate(self, dx, dy):
          '''Convenience function to implement the mouse rotation by
          giving two displacements in the x and y directions.
  
          '''
          fact = 1.5
          self.orbit_y(-dx*fact)
          self.orbit_x(dy*factf mouse_rotate(self, dx, dy):
          '''Convenience function to implement the mouse rotation by
          giving two displacements in the x and y directions.
  
          '''
          fact = 1.5
          self.orbit_y(-dx*fact)
          self.orbit_x(dy*fact)
docs: Convenience function to implement the mouse rotation by
          giving two displacements in the x and y directions.