I have many QwtPlot objects sharing the same points data in XY coordinates. There can be like 10 curves in one plot. I want display some curves in first plot window and some other curves in second, etc.
Each plot would have drawn their y-axis but there would be only one common x-axis. Plots are stacked vertically and I want one common vertical tracker .
I have some ideas but would this work ?
- each QwtPlot has QwtPlotPicker installed and can draw vertical tracker.
- each plot has slot for 'selected' signal from the picker
- when plot receives 'selected' from picker it sends same signal to other plots with same arguments (that contain position)
I think this could work if the plot sizes are exactly the same. Would it be better to have plot translate mouse point to curve's point in x-axis and send that info to others?
Bookmarks