Change sign of loc0 at this line.
# 3 # location change via translate.x * STTransform(translate=(self.image.size * (-loc0 - 0.25), 0.0))
impostorneeds a bit more thought.
I'm working on 2 projects that I might be able to migrate to vispy.
First one is plotting points. Each point is a trade. Intensity is volume.
A few thousand dots per frame.
I get 20-30fps rendering into an XxYxRGB numpy array and blitting it to screen thru opencv. And I can catch mouseclicks.
But it gets sluggish as I increase the dots.
And I have to do numpy voodoo for multiple trades occupying the same pixel, that I'd love to gut out from my code.
And the other, same deal just plotting an array of coloured rectangles.
It's for visualizing a stock graph, the rectangles represent trades or orderbook info.
And I click on a trade to zoom into it & observe market activity in close temporal proximity to that trade. I want to do this as an overlay.
I figured I can pass a numpy vertex array into a shader.
RuntimeError: OpenGL got errors (Check before draw): GL_INVALID_VALUE