def _update_linked_axes(self):
<EOL>if len(self.plot_widgets) <= <NUM_LIT:1>: return<EOL>a = self.plot_widgets[<NUM_LIT:0>].plotItem.getViewBox()<EOL>for n in range(<NUM_LIT:1>,len(self.plot_widgets)):<EOL><INDENT>b = self.plot_widgets[n].plotItem.getViewBox() <EOL>if self.button_link_x.is_checked() and b.linkedView(b.XAxis) == None:<EOL><INDENT>b.linkView(b.XAxis, a)<EOL><DEDENT>elif not self.button_link_x.is_checked() and not b.linkedView(b.XAxis) == None:<EOL><INDENT>b.linkView(b.XAxis, None)<EOL><DEDENT><DEDENT>
Loops over the axes and links / unlinks them.