Hello everyone and thank you very much to all the developers for their contributions to tools such as holoviews bokeh and datashader.
My task is quite simple and clear on the one hand, but I do not understand how to implement it. I have a dataframe with coordinates in the Mercator projection and a magnitude column. I need to build paths according to these coordinates and color them in accordance with the magnitude column. At the same time, there are so many paths that I have to resort to rasterize () and spread to add thickness to the line.
My current code is:
map_tiles*spread(rasterize(hv.Path([path], vdims=‘magnitude’), aggregator=ds.mean(‘magnitude’), precompute=True), px=5).opts(width=700, cmap=colors, height=500, color_levels = 7, colorbar=True,
clim=(0, 1000), tools=[‘hover’]
generates the next image
My question is the following:
- What do the color bar values mean? in my case, this clearly does not correspond to the value of the magnitude column. I am satisfied with how the paths are painted, but I can not match the colors of the coloring with the magnitude values
- how to make the color scale value correspond to the values of the ‘magnitude’ column (at the moment it does not match at all)?
- how to make the “magnitude” column value displayed by hovering over the path?