The plotly menu always popus up on mouseover and means that you can not click the legend which has a nice feature of show/hide each of the traces. Is there a way to move the legend OR move the menu so they do not conflict?
UPDATE:
This seems to be ok?
import plotly.express as px
df = px.data.gapminder().query("year==2007")
fig = px.scatter(df, x="gdpPercap", y="lifeExp", color="continent",
size="pop", size_max=45, log_x=True)
fig.update_layout(legend=dict(
yanchor="top",
y=0.99,
xanchor="left",
x=0.01
))
fig.show()