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

Improved auto-labeling of colorbars in one-liners #6831

Open
PaulWessel opened this issue Jun 28, 2022 · 0 comments
Open

Improved auto-labeling of colorbars in one-liners #6831

PaulWessel opened this issue Jun 28, 2022 · 0 comments
Assignees
Labels
feature request Request a new feature

Comments

@PaulWessel
Copy link
Member

Description of the desired feature

Currently, when such one-liners are run we issue a colorbar call to place the color bar beneath the plot. However, since the user is not typing those commands the annotations are plain (-Bxaf) and there is no labeling of the bar to indicate what it is. The suggestion is to use the grid's z-name string as y-label for the colorbar. In the worst case it will place a "z" there for grids with no information, which is not bad, but in better cases it will place m, mGal, km, C etc if the grid has a sensible unit name.

The implementation would be that grdimage and grdview would create a small file in the session directory to hold the selected color label and then colorbar can check if such a file exist and if so, use that string to add -By+lstring to the hidden call.

@PaulWessel PaulWessel added the feature request Request a new feature label Jun 28, 2022
@PaulWessel PaulWessel added this to the 6.5.0 milestone Jun 28, 2022
@PaulWessel PaulWessel self-assigned this Jun 28, 2022
@PaulWessel PaulWessel removed this from the 6.5.0 milestone Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a new feature
Projects
None yet
Development

No branches or pull requests

1 participant