I have the following heatmap made by Holoviews. I need to change x ticks to change the period of x ticks. [0,2,4,...] instead of [0,1,2,3,4,..]
data = [(i, j, i*j) for i in range(10) for j in range(10)]
hv.HeatMap(data)
I have the following heatmap made by Holoviews. I need to change x ticks to change the period of x ticks. [0,2,4,...] instead of [0,1,2,3,4,..]
data = [(i, j, i*j) for i in range(10) for j in range(10)]
hv.HeatMap(data)
With HoloViews >= 1.13, you can now use keyword
.opts(xticks)
and.opts(yticks)
for setting continuous (non-categorical) ranges.Example:
Resulting plot:
It seems that bokeh doesn't provide such function. However you can change the
doFormat
function ofxaxis.formatter
before draw the plot.After run the following cell:
plot the
HeatMap
:here is the output: