Skip to content

SelectPolygon: preserve first-pixel marker size in pixels on zoom#4645

Open
woutdenolf wants to merge 1 commit into
mainfrom
117-plot-polygon-interaction-first-point-might-not-be-well-displayed
Open

SelectPolygon: preserve first-pixel marker size in pixels on zoom#4645
woutdenolf wants to merge 1 commit into
mainfrom
117-plot-polygon-interaction-first-point-might-not-be-well-displayed

Conversation

@woutdenolf

@woutdenolf woutdenolf commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

PR summary

Marker of the first point in a polygon stays the same size on zooming. Closing the polygon is done when clicking on the marker.

Peek 2026-06-19 17-01
import sys

from silx.gui import qt
from silx.gui.plot import Plot1D

app = qt.QApplication(sys.argv)

plot = Plot1D()

plot.addCurve([0, 100], [0, 100], legend="diag")

plot.setLimits(0, 100, 0, 100)
plot.show()

plot.setInteractiveMode("draw", shape="polygon")

sys.exit(app.exec())

AI Disclosure

  • No AI used
  • AI tool(s) ... used for ...

@woutdenolf woutdenolf marked this pull request as ready for review June 19, 2026 15:03
@woutdenolf woutdenolf requested a review from a team June 19, 2026 15:04
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

Successfully merging this pull request may close these issues.

[Plot] Polygon interaction first point might not be well displayed

1 participant