-
Notifications
You must be signed in to change notification settings - Fork 408
Description
Currently, if you plot a color bar with a categorical CPT:
gmt colorbar -Cclasscolor.cpt -Dx4i/4i+w5i+h -png a
you will by default get this:
Not liking this, we usually decide to add -Lgap:
gmt colorbar -Cclasscolor.cpt -Dx4i/4i+w5i+h -L6p -png b
But, since categories are never continuous we should automatically detect that and behave as if -L was set. Changing this would be a "bug fix" in the sense we cannot secure backward compatibility. Alternatively, we invent a modifier +c for -L that means "If CPT is categorical, auto-apply -L, else ignore it". For out one-liner plots we would certainly then add -L+c to the internal call. Also if gap is not set we should have a default, e.g., The n-1 gaps should add to 15% of the bar width (for example, here it is ~15%).
Comments?

