silx-kit / silx

silx toolkit
http://www.silx.org/doc/silx/latest/
MIT License
136 stars 74 forks source link

[mask] Pencil tool relative to screen #2508

Open vallsv opened 5 years ago

vallsv commented 5 years ago

It would be very useful to create a pencil tool where the size (and maybe the shape), is relative to the screen, and not relative to the data.

The feature was proposed by @t20100 somewhere.

That's a convenient behaviour cause you usually don’t have to change the size of the tool when you change the zoom.

It should also fix problems relative to scatter.

vallsv commented 5 years ago

If it could be done, i would like to use it on pyFAI. Any idea of the difficulties?

t20100 commented 5 years ago

This would be much better indeed. As it is not done already, I expect it's not straight forward. I would expect it to either need an update of the backend for doing rendering on screen or requiring connection to PlotWidget limits, resize and axes scale changes.