From aff4e976b6721eeb3c123a62676d993bfd0fef7a Mon Sep 17 00:00:00 2001 From: Rob Letzler <22990670+rl-utility-man@users.noreply.github.com> Date: Fri, 27 Jun 2025 09:35:42 -0400 Subject: [PATCH] restoring an accidently deleted figure creation line --- doc/python/text-and-annotations.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/python/text-and-annotations.md b/doc/python/text-and-annotations.md index 84521f34cd7..56f341e8728 100644 --- a/doc/python/text-and-annotations.md +++ b/doc/python/text-and-annotations.md @@ -789,6 +789,11 @@ This example shows how to add a note about the data source or interpretation at ```python import plotly.express as px df = px.data.iris() + +fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", + size='petal_length', hover_data=['petal_width']) + + fig.update_layout( title=dict(text="Note: this is the Plotly title element.", # keeping this title string short avoids getting the text cut off in small windows