def disconnect(self):
        self.fig_axial.figure.canvas.mpl_disconnect(self.cidpress)
        self.fig_axial.figure.canvas.mpl_disconnect(self.cidrelease)
        self.fig_axial.figure.canvas.mpl_disconnect(self.cidmotion)

        self.fig_frontal.figure.canvas.mpl_disconnect(self.cidpress)
        self.fig_frontal.figure.canvas.mpl_disconnect(self.cidrelease)
        self.fig_frontal.figure.canvas.mpl_disconnect(self.cidmotion)

        self.fig_sagittal.figure.canvas.mpl_disconnect(self.cidpress)
        self.fig_sagittal.figure.canvas.mpl_disconnect(self.cidrelease)
        self.fig_sagittal.figure.canvas.mpl_disconnect(self.cidmotion)
disconnect all the stored connection ids
dataset/ETHPy150Open neuropoly/spinalcordtoolbox/scripts/sct_viewer.py/TrioPlot.disconnect