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:
def update(evt=None):
r = scroll.value() / ((1 + step) * 100)
l1 = lims[0] + r * np.diff(lims)#lims - is the first and last value on the x axis(two values)
l2 = l1 + np.diff(lims) * step
ax.set_xlim(l1, l2)
def update(evt=None):
r = scroll.value() / ((1 + step) * 100)
l1 = lims[0] + r * np.diff(lims)#lims - is the first and last value on the x axis(two values)
l2 = l1 + np.diff(lims) * step
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"?
Bookmarks