Skip to content

Conversation

@kasemir
Copy link
Collaborator

@kasemir kasemir commented Oct 14, 2024

When 'limits from PV' was used with a VImage (from PVA NTNDArray), the image axes would update to the size of the image whenever the PV sent a new value. But when the PV stayed constant and one would then perform operations that require a layout, like show/hide the toolbar, the image would be redrawn with the axes ranges from the model. The display would thus show the wrong axes until the PV sent another update.
Now the model axes are updated from the VImage, so the display sticks to the most recently received range from the VImage.

Similarly, when showing or hiding the toolbar, which changes the height of the image, the first update of the image would redraw in the old location on the screen.

Finally, the auto-scaling of the color bar failed when the value range was empty, for example all zeroes.

kasemir added 5 commits October 11, 2024 14:09
When 'limits from PV' was used with a VImage (from PVA NTNDArray), the
image axes would update to the size of the image whenever the PV sent a
new value. But when the PV stayed constant and one would then perform
operations that require a layout, like show/hide the toolbar, the image
would be redrawn with the range from the model.
The display would thus show the wrong axes range until the PV sent
another update.

Now the model axes are updated from the VImage, so the display sticks to
the most recently received range from the VImage.
The image location on the screen used the old "dst_...". Now we compute
the new layout and then "dst_.." values from the updated layout.
@kasemir kasemir merged commit 567e714 into master Oct 14, 2024
2 checks passed
@kasemir kasemir deleted the image_plot_vimage_dims branch October 14, 2024 16:10
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.

2 participants