Auto adjusts the visible range of the spectrogram

def specAutoRange(self):
        """Auto adjusts the visible range of the spectrogram"""
        trace_range = self.responsePlots.values()[0].viewRange()[0]
        vb = self.specPlot.getViewBox()
        vb.autoRange(padding=0)
        self.specPlot.setXlim(trace_range)