def connect(self, axes, update):
    '\n        axes : matplotlib.Axes\n           Axes where to connect this camera to\n\n        update: function(transform)\n           Function to be called with the new transform to update the scene\n           (transform is a 4x4 matrix).\n        '
    self.figure = axes.get_figure()
    self.axes = axes
    self.update = update
    self.mouse = None
    self.cidpress = self.figure.canvas.mpl_connect('scroll_event', self.on_scroll)
    self.cidpress = self.figure.canvas.mpl_connect('button_press_event', self.on_press)
    self.cidrelease = self.figure.canvas.mpl_connect('button_release_event', self.on_release)
    self.cidmotion = self.figure.canvas.mpl_connect('motion_notify_event', self.on_motion)

    def format_coord(*args):
        phi = self.trackball.phi
        theta = self.trackball.theta
        return ('Θ : %.1f, ɸ: %.1f' % (theta, phi))
    self.axes.format_coord = format_coord
axes : matplotlib.Axes
   Axes where to connect this camera to

update: function(transform)
   Function to be called with the new transform to update the scene
   (transform is a 4x4 matrix).
def connect(self, axes, update):
    '\n        axes : matplotlib.Axes\n           Axes where to connect this camera to\n\n        update: function(transform)\n           Function to be called with the new transform to update the scene\n           (transform is a 4x4 matrix).\n        '
    self.figure = axes.get_figure()
    self.axes = axes
    self.update = update
    self.mouse = None
    self.cidpress = self.figure.canvas.mpl_connect('scroll_event', self.on_scroll)
    self.cidpress = self.figure.canvas.mpl_connect('button_press_event', self.on_press)
    self.cidrelease = self.figure.canvas.mpl_connect('button_release_event', self.on_release)
    self.cidmotion = self.figure.canvas.mpl_connect('motion_notify_event', self.on_motion)

    def format_coord(*args):
        phi = self.trackball.phi
        theta = self.trackball.theta
        return ('Θ : %.1f, ɸ: %.1f' % (theta, phi))
    self.axes.format_coord = format_coord