Skip to content

Commit dbe34ad

Browse files
committed
update config example
1 parent 97f4030 commit dbe34ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/python/configuration-options.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,16 @@ fig.show()
363363

364364
*New in 6.7*
365365

366-
By default, Plotly displays a notification in the top-right corner of the plot for actions such as downloading the plot. Set `displayNotifier` to `False` to hide these notifications.
366+
Plotly displays a notification in the top-right corner of the plot when downloading the plot as an image, when first clicking a legend item, and when zooming in. Set `displayNotifier` to `False` to hide these notifications.
367367

368368
```python
369369
import plotly.express as px
370370

371-
fig = px.scatter(x=[1, 2, 3], y=[1, 3, 2])
372-
fig.show(config={"displayNotifier": False})
371+
df = px.data.iris()
372+
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")
373+
374+
config = {"displayNotifier": True}
375+
fig.show(config=config)
373376
```
374377

375378
### Configuring Figures in Dash Apps

0 commit comments

Comments
 (0)