Black Lives Matter. Please consider donating to Black Girls Code today.

Rotate markers in plotly

I am trying to plot a trajectory of a fly. It consists of x,y, theta(heading) and a timestamp. I am plotting a scatter of all the points and the triangle marker’s orientation conveys the heading. What I need here is to rotate the marker based on the theta value. But I am unable to find any way of doing that in plotly.

I can’t just use the in the scatter markers, I need the entire range of 0-360 in float. I can do this in bokeh, but I have other issues regarding interactivity which plotly manages better.

An example with bokeh

There’s no easy way to do that at the moment unfortunately.

I’d recommend plotting your projectile as a layout shape