parameters: (self, *args)
docstring: Activate the pan/zoom tool. pan with left button, zoom with right
docstring_summary: Activate the pan/zoom tool. pan with left button, zoom with right
docstring_tokens: Activate the pan / zoom tool . pan with left button zoom with right
function: def pan(self, *args):
          """Activate the pan/zoom tool. pan with left button, zoom with right"""
          # set the pointer icon and button press funcs to the
          # appropriate callbacks
  
          if self._active == 'PAN':
              self._active = None
              self.enable_autoscale_notifier.notify_subscribers()
              self.range_changed_notifier.notify_subscribers()
  
          else:
              self.uncheck_autoscale_notifier.notify_subscribers()
              self.disable_autoscale_notifier.notify_subscribers()
              self._active = 'PAN'
          if self._idPress is not None:
              self._idPress = self.canvas.mpl_disconnect(self._idPress)
              self.mode = ''
  
          if self._idRelease is not None:
              self._idRelease = self.canvas.mpl_disconnect(self._idRelease)
              self.mode = ''
  
          if self._active:
              self._idPress = self.canvas.mpl_connect(
                  'button_press_event', self.press_pan)
              self._idRelease = self.canvas.mpl_connect(
                  'button_release_event', self.release_pan)
              self.mode = 'pan/zoom'
              self.canvas.widgetlock(self)
          else:
              self.canvas.widgetlock.release(self)
  
          for axes in self.canvas.figure.get_axes():
              axes.set_navigate_mode(self._active)
  
          self._update_buttons_checked()
          self.set_message(self.mode)
function_tokens: def pan ( self , * args ) : # set the pointer icon and button press funcs to the # appropriate callbacks if self . _active == 'PAN' : self . _active = None self . enable_autoscale_notifier . notify_subscribers ( ) self . range_changed_notifier . notify_subscribers ( ) else : self . uncheck_autoscale_notifier . notify_subscribers ( ) self . disable_autoscale_notifier . notify_subscribers ( ) self . _active = 'PAN' if self . _idPress is not None : self . _idPress = self . canvas . mpl_disconnect ( self . _idPress ) self . mode = '' if self . _idRelease is not None : self . _idRelease = self . canvas . mpl_disconnect ( self . _idRelease ) self . mode = '' if self . _active : self . _idPress = self . canvas . mpl_connect ( 'button_press_event' , self . press_pan ) self . _idRelease = self . canvas . mpl_connect ( 'button_release_event' , self . release_pan ) self . mode = 'pan/zoom' self . canvas . widgetlock ( self ) else : self . canvas . widgetlock . release ( self ) for axes in self . canvas . figure . get_axes ( ) : axes . set_navigate_mode ( self . _active ) self . _update_buttons_checked ( ) self . set_message ( self . mode )