Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot: Slow down with big polyline Shapes #3946

Open
vallsv opened this issue Oct 3, 2023 · 0 comments
Open

plot: Slow down with big polyline Shapes #3946

vallsv opened this issue Oct 3, 2023 · 0 comments
Assignees

Comments

@vallsv
Copy link
Contributor

vallsv commented Oct 3, 2023

Hi,

I am displaying a lot of polylines Shape to mark some locations in an image.

It sounds like it slow down a lot the rendering.

Playing with the flag setOverlay does'nt change much.

Previously i was using Curve for the rendering, but this does not feature double colors.

Here is a piece of code

                    if True:
                        ringItem = silxItems.Shape("polylines")
                        ringItem.setPoints(numpy.array((x, y)).T)
                        ringItem.setName(key)
                        ringItem.setLineStyle("--")
                        ringItem.setColor("#FF0000A0")
                        ringItem.setLineBgColor("#FFFFFFA0")
                    else:
                        # The implementation with shape have some lacks
                        # Maybe we will have to fall down with curves
                        ringItem = FlintRingCurve()
                        ringItem.setRing(ring)
                        ringItem.setData(x, y)
                        ringItem.setName(key)
                        ringItem.setColor("#FFFFFFA0")
                        ringItem.setLineStyle("--")

The use case is really to put some location on top of the image. It is not supposed to be updated often (up until now), so it is really a problem of rendering.

Screenshot from 2023-10-02 18-43-01

@vallsv vallsv added this to the 2.0.0 milestone Oct 3, 2023
@t20100 t20100 self-assigned this Dec 5, 2023
@t20100 t20100 removed this from the 2.0.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants