✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Adding customized dots to lines

Hi

I’m trying to add customized dots on the line,but I did not find any documentation about it

so far, I implement it as follows

x = np.arange(10)
fig = go.Figure(data=go.Scatter(x=x, y=x**2,mode='lines' ))
fig.add_trace(go.Scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16], mode='markers'))
fig.show()

I’m using add trace to add customized dots, I’m wondering if there’s another way of doing this ?

Sincerely