Display absolute axis values ​​for a bokeh shape

Is there a way to arbitrarily specify the values ​​displayed on the axis for a bokeh shape?

For example, imagine that you have a categorical axis with x_range [Jan 2001, Feb 2001, Mar 2001, ... December 2010] , but you want to display only the year values [2001, 2002, ... 2010] . So the obvious way to do this is to specify a mapping of values ​​to display, where all January values ​​are mapped to the year string and all other values ​​are mapped to an empty string. Is this possible in bokeh?

+5
source share

All Articles