go.Scatter() plot with oriented markers (for example tadpole markers)


I am trying to create a go.Scatter() plot with marker symbols (for example tadpoles) that are oriented.
In the doc, I didn’t find any property to modify the orientation of marker symbols.

Is there perhaps a workaround?

I found that in Matplotlib, there is such a functionality (link).

Thanks a lot in advance!

Hi @vont,
This is the Plotly version for oriented markers:

import plotly.graph_objects as go
import numpy as np
tris= ["triangle-up", "triangle-down", "triangle-left", "triangle-right"]
fig=go.Figure(go.Scatter(x=[1,2,3,4,5,6], y=np.random.randint(1, 13, 6), 
                         mode="markers", marker_size=15,
                         marker_symbol= [tris[k] for k in np.random.randint(0, 4, 6)], 
                         marker_color=["red", "blue", "orange", "green", "yellow", "black"])
                         #or marker=dict(size=15, symbol=[tris[k] for k in np.random.randint(0, 4, 6)], color=["red"])

fig.update_layout(width=500, height=450)

or single color markers, defined as a dict in the commented line: