-
Notifications
You must be signed in to change notification settings - Fork 361
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
Annotations for categorical CPT #4388
Comments
Hm, see colorbar -Li. Seems to be doing that. |
|
BTW, the categorical CPT looks correct:
|
When colorbar plots a categorical CPT and no -B is given then it will center the annotations on each unique color and it will use as label whatever is given in the CPT (after the ; label marker per record) or, if no such labels, create one from the boundaries, i.e., 0-1, 1-2, 2-3 in your case. If I manually fix your cpt to look like this: 0 24/45.5/72.5 L ;0 then I get what you would prefer. Given this behavior is very long-lived and often reasonable, we could consider other schemes to simplify setting these labels. Here are some thoughts/suggestions for makecpt: Let -F+c[label] take an optional modifier argument to +c that will do the following, depending on label:
I think this is a splendid proposal no? |
Agree. Nice adding |
makecpt -F+c
can produce a categorical CPT, but when plotting the colorbar, the annotations look weird. See the example below. Why the annotations are "0-1", "1-2", and "2-3". Should they be "0", "1", and "2", no?The text was updated successfully, but these errors were encountered: