Hello,
Im wondering if it is possible to modify the "Z-order" of a line after a number of plot calls are made?
For example, I have an interactive application where the user can plot a number of data channels as follows:
pltwidgetlist[pltwidgetIndex].plot(time1,data1, name =channel1, pen =colour1, clickable=True)
pltwidgetlist[pltwidgetIndex].plot(time2,data2, name =channel2, pen =colour2, clickable=True)
pltwidgetlist[pltwidgetIndex].plot(time3,data3, name =channel3, pen =colour3, clickable=True)
Newer plots always lie ontop of the previous and sometimes this can be a pain when the newer data obscures the old. It would be useful if there is a way to change the order of each plot after they are plotted. E.g. move oldest one to front, or move the clicked on curve to the front.
It seems that the code in PlotItem.py would handle this, however I cant see a way to re-order and re-draw...
Thanks,
Nick