Plot speed along trajectory

https://datashader.org/user_guide/Trajectories.html describes how to plot trajectories. However, it does not mention if it is possible to use additional columns or derived attributes (such as speed between consecutive locations) to color the trajectory.

http://holoviews.org/reference/elements/matplotlib/Path.html shows how to color a path according to a given column but I don’t know if this information can somehow be transferred to datashader.

1 Like

This is a good point, as I see from Plot only trajectory segments exceeding length threshold you have figured out how to do this but we should add an example of using custom aggregators. I’ll open an issue.

1 Like

Thank you, Philipp! An example in the docs would be great! While I have figured out how to filter the segments based on an attribute value, I’m still not sure how to e.g. apply a colorramp to the speed values.

The ticket for future reference: https://github.com/holoviz/datashader/issues/969