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

Image axes from pv #2315

Merged
merged 2 commits into from
Jun 28, 2022
Merged

Image axes from pv #2315

merged 2 commits into from
Jun 28, 2022

Conversation

kasemir
Copy link
Collaborator

@kasemir kasemir commented Jun 27, 2022

Adds a limits_from_pv property to the image widget that sets the axis min/max to reflect the pixel coordinates with origin in the upper left corner.
With PVA, the image size is taken from the PV. With Channel Access, the data_width and data_height properties are used.

To remain compatible with existing displays, the default is limits_from_pv=false.
As before, that allows setting the x_axis.minimum, y_axis.maximum etc. either manually or from scripts and rules.
For scripts or rules that want to use the pixel dimensions, a new pair of imageWidth(VImage) and imageHeight(VImage) formula functions have been added.

@kasemir kasemir merged commit f7e4990 into master Jun 28, 2022
@kasemir kasemir deleted the image_axes_from_pv branch June 28, 2022 12:27
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.

1 participant