ARTICLE AD BOX
I'm trying to plot some objects on top of an image in Vispy, but somehow, they always get plotted behind it. For what I've read, the order in which everything is added in vispy should determine the layer position, but it seems my image always gets on top of everything.
First I add the image to the canvas with:
Image = scene.visuals.create_visual_node(visuals.ImageVisual) I = Image(parent=sc, interpolation="nearest",method='subdivide') I.set_data(img)Where img is the image path and sc is the canvas view, then, any object added, for ex, a line:
Line = scene.visuals.create_visual_node(visuals.LineVisual) L = Line(parent=sc) L.set_data(line, color=color,width=width, connect=connect)And it gets plotted behind the image
Is there anyway, any arg or similar, to set an object to be placed in front of the previous ones, or to keep the image always on "background"?
