-
Notifications
You must be signed in to change notification settings - Fork 17
Logspace colorbar #34
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
base: main
Are you sure you want to change the base?
Conversation
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]>
|
cc @zingale |
| AVXGrab(Display *display) : bIsGrabbed(true), cachedDisplay(display) { | ||
| XSync(cachedDisplay, False); | ||
| XGrabServer(display); | ||
| //XGrabServer(display); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
just tried it and it seems to work great. |
This adds a log-spaced colorbar that can be toggled with the
Lkey. 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.