How do I manually set the tick locations of a colorbar for a Points plot in HoloViews?
问题 I have the following code: import numpy as np import holoviews as hv from bokeh.models import FixedTicker hv.extension('bokeh') points = hv.Points(np.random.randint(-3, 4, (20, 3)), vdims=['interval']) points.opts( color='interval', size=10, colorbar=True, color_levels=7, colorbar_opts={ 'major_label_overrides': { -3: 'high', -2: 'medium', -1: 'low', 0: 'none', 1: 'low', 2: 'medium', 3: 'high' }, 'major_label_text_align': 'left', }, cmap='RdYlGn', ) Which produces something like: However, I