I’m trying to display an image for each point of my scatterplot made with plotly using Streamlit.
This is my code now:
fig = px.scatter(
x=features_transformed[:, 0],
y=features_transformed[:, 1],
color=classes_names,
color_discrete_sequence=color_sequence,
title="PCA Plot",
)
fig.update_layout(
legend_title_text='Prova'
)
fig.add_trace(
go.Scatter(
x=point[:, 0],
y=point[:, 1],
mode="markers",
marker=dict(
symbol="x",
color="black",
size=10,
),
name = "uploaded image"
)
)
I have points and a specific point marked with an “x” that also should have its hover image.
I’ve tried every solutions on the web, but no one mentions Streamlit.
Can someone help me?
Thanks a lot
New contributor
Miriana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.