I am trying to design a GUI to refresh a plot i.e. plot(timeS, dataS)
, using a slider corresponding to the time vector (timeS
) of the data that I want to display (dataS
) which is varying in time.
I have tried to connect the slider to my plot function which has a lot of input
self.slider.valueChanged.connect(self.myPlotFunction(.....))
, which is located in the init part of my class, but I can't use the input of the defined function myPlotFunction()
.
So I want that when I start dragging the slider, the plot changes according to the time/position of the slider. Moreover my time vector is made of floats while the slider allows int values.