import plotly.express as px df = px.data.gapminder().query("continent=='Oceania'") fig = px.line(df, x="year", y="lifeExp", color='country') fig.show()
fig.add_hline(y=0.9) #line fig.add_vrect(x0=0.9, x1=2) #rectangle