def _update_linked_axes(self):
        """
        Loops over the axes and links / unlinks them.
        """
        # no axes to link!
        if len(self.plot_widgets) <= 1: return

        # get the first plotItem
        a = self.plot_widgets[0].plotItem.getViewBox()
        
        # now loop through all the axes and link / unlink the axes
        for n in range(1,len(self.plot_widgets)):
            
            # Get one of the others
            b = self.plot_widgets[n].plotItem.getViewBox() 
            
            # link the axis, but only if it isn't already
            if self.button_link_x.is_checked() and b.linkedView(b.XAxis) == None:
                b.linkView(b.XAxis, a)
            
            # Otherwise, unlink the guy, but only if it's linked to begin with
            elif not self.button_link_x.is_checked() and not b.linkedView(b.XAxis) == None:
                b.linkView(b.XAxis, None)
def _update_linked_axes ( self ) : if len ( self . plot_widgets ) <= 1 : return a = self . plot_widgets [ 0 ] . plotItem . getViewBox ( ) for n in range ( 1 , len ( self . plot_widgets ) ) : b = self . plot_widgets [ n ] . plotItem . getViewBox ( ) if self . button_link_x . is_checked ( ) and b . linkedView ( b . XAxis ) == None : b . linkView ( b . XAxis , a ) elif not self . button_link_x . is_checked ( ) and not b . linkedView ( b . XAxis ) == None : b . linkView ( b . XAxis , None )
Loops over the axes and links / unlinks them.