Skip to content

Conversation

@paulromano
Copy link
Contributor

I recently tried using the data indicator with a mesh tally displayed in the plotter and found that it was practically unusable because it caused a full redraw of the image each time the mouse moved. This PR changes the indicator updates to use blitting so that updating the indicator line can be done quickly without redrawing the full image.

@paulromano paulromano requested a review from pshriwise January 19, 2026 19:59
Copy link
Collaborator

@pshriwise pshriwise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I updated the name of the PlotImage.colorbar attribute to something a little more descriptive that was pre-existing (the corresponding colorbar background cache name as well). Hope that's alright. There was a section of code that was throwing me a bit in PlotImage._blit_indicator where a background cache is selected. It helps there in particular I think.

I don't know that I've used the data indicator feature in a while, so thanks for noticing and addressing this!

@pshriwise pshriwise merged commit d06fb2f into openmc-dev:develop Jan 23, 2026
1 check passed
@paulromano paulromano deleted the indicator-blit branch January 23, 2026 19:08
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