Skip to content

Commit c0f6c8c

Browse files
committed
class-style property access
1 parent ff64f59 commit c0f6c8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebooks/creating-updating-figures.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ As an alternative to working with Python dictionaries, plotly.py provides a hier
6060

6161
1. Graph objects provide precise data validation. So if you provide an invalid property name or an invalid property value, an exception will be raised with a helpful error message describing the problem.
6262
2. Graph objects contain descriptions of each property as Python docstrings. You can use these docstrings to learn about the available properties as an alternative to consulting the *Full Reference*.
63-
3. Graph objects support higher-level convenience functions for making updates to already constructed figures, as described below.
63+
3. Properties of graph objects can be accessed using dictionary-style key lookup (e.g. `fig["layout"]`) or class-style property access (e.g. `fig.layout`).
64+
4. Graph objects support higher-level convenience functions for making updates to already constructed figures, as described below.
6465

6566
Graph objects are stored in a hierarchy of modules under the `plotly.graph_objects` package. Here is an example of one way that the figure above could be constructed using graph objects.
6667

0 commit comments

Comments
 (0)