Hi,
I have 3 curves that need to be plotted. One of the curves needs to stay on top to be seen no matter what order they are all drawn. Is there a simple way to do this?
Thank you.
Hi,
I have 3 curves that need to be plotted. One of the curves needs to stay on top to be seen no matter what order they are all drawn. Is there a simple way to do this?
Thank you.
Plot items are painted in order of their z-values. (QwtPlotItem::setZ()).
Uwe
jmsbc (2nd July 2009)
Hi Uwe,
Now I have another problem that is similar... I'm plotting a track that has two sides (right and left), and each side consists of red lines and green lines. Each side is being saved as a different curve (all the points for the green lines are 1 curve, and all the points for the red lines are in another curve):
g---------------------g r---------------------r
g---------------------g r---------------------r
g---------------------g r---------------------r
g---------------------g r---------------------r
However when the track loops back to cut across a previously painted track, the green from the previous track will stay on top of the red from the current track since the green curve has lower Z value.
Can you think of any way that I can fix that? Do you think it's a good idea to keep a Z value for each data point (line) in each curve? And then where would I look to control the painting for my user-defined Z value?
Thanks.
Bookmarks