In "matplotlib" to install the viewing range of the x-axis used the function "set_xlim"
That is, after installing "step" by means of "Slider" I used the following code:
Qt Code:
  1. def update(evt=None):
  2. r = scroll.value() / ((1 + step) * 100)
  3. l1 = lims[0] + r * np.diff(lims)#lims - is the first and last value on the x axis(two values)
  4. l2 = l1 + np.diff(lims) * step
  5. ax.set_xlim(l1, l2)
To copy to clipboard, switch view to plain text mode 
So I was able to set the scale and scroll the chart.
Is there any Qt function is similar to "set_xlim"?