You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: migration-guide.md
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,14 @@ f
28
28
```
29
29
30
30
## New Plotly Object Representation
31
-
Plotly figures and objects now display a clean representation of the dict-like hierarchy of their structure. They also includes the dict-like `__repr__` method that represents the object as a string
31
+
Plotly figures and graph objects have an updated `__repr__` method that displays objects in a pretty printed form that can be copied, pasted, and evaluated to recreate the object.
@@ -56,7 +57,7 @@ It's not valid because it's introducing a new trace during assignment. This trac
56
57
57
58
58
59
## FigureWidget Subplot Example
59
-
Let's create a subplot then turn it into a FigureWidget to display in the notebook. Note that `append_trace` is no deprecated. Use `add_trace` or `add_traces` instead.
60
+
Let's create a subplot then turn it into a FigureWidget to display in the notebook. Note that `append_trace` is now deprecated. Use `add_trace` or `add_traces` instead.
60
61
61
62
```
62
63
import plotly
@@ -77,7 +78,7 @@ f2.layout.title = 'Age against variables relating to diabetes'
77
78
f2
78
79
```
79
80
80
-
## What doesn't work anymore
81
+
## Breaking Changes
81
82
Run the following examples to see what is now deprecated or not valid:
82
83
83
84
- Data array properties may not be specified as scalars:
@@ -86,7 +87,7 @@ import plotly.graph_objs as go
86
87
go.Bar(x=1)
87
88
```
88
89
89
-
-Undocumented properties are no longer available. These include: `.to_string`, `.strip_style`, `.get_data`, `.validate` and `.to_dataframe`.
90
+
-Several undocumented `Figure` methods have been removed. These include: `.to_string`, `.strip_style`, `.get_data`, `.validate` and `.to_dataframe`.
90
91
91
92
- Object arrays such as `Figure.data` and `Layout.images` are now represented as tuples of graph objects, not lists. Run the following as a sanity check:
0 commit comments