Skip to content

Conversation

@BenWibking
Copy link

@BenWibking BenWibking commented Jul 1, 2025

This adds a log-spaced colorbar that can be toggled with the L key. If any data values for the current selected variable are non-positive, it does nothing.

There are two unrelated minor changes in this branch that I need to split into separate PRs before I un-draft this PR.

BenWibking and others added 9 commits May 29, 2025 17:56
The log scale toggle was previously only updating the colorbar labels
but not the actual data-to-color mapping. This fix implements logarithmic
transformation of data values before color mapping when log scaling is enabled.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@BenWibking
Copy link
Author

cc @zingale

AVXGrab(Display *display) : bIsGrabbed(true), cachedDisplay(display) {
XSync(cachedDisplay, False);
XGrabServer(display);
//XGrabServer(display);
Copy link
Author

Choose a reason for hiding this comment

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

I need to refactor this out into a separate PR. This could be controlled by an ifdef so Amrvis will work with x11vnc or xpra.

Copy link
Member

Choose a reason for hiding this comment

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

Is the grab even necessary with modern hardware? As I understand it, the main reasons for grabbing the server are to prevent other windows from trying to redraw themselves while drawing over them (which shouldn't be needed here, since the rectangle is only drawn over our own widgets), and to prevent other apps from congesting the server while doing something interactive (like rubber-banding). I couldn't see any performance differences when I commented out the grab call (running on a local Xorg server). If anything, it was slightly less flickery.

@BenWibking BenWibking marked this pull request as draft July 1, 2025 16:48
Copy link
Author

Choose a reason for hiding this comment

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

This documentation update could be split into a separate PR.

@zingale
Copy link
Member

zingale commented Jul 1, 2025

just tried it and it seems to work great.

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.

3 participants