Note: This approach is OK with categorical data where each tick is associated with one discrete color. This approach could result in erroneous colorbar labels if the data are on a continuous scale. For continuous data, leave the cbh.Ticks (last line) visible to ensure that they match with the kludged ticks along the y axis of the colobar.
Best Answer