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: CHANGELOG.md
+8
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,14 @@
2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [Semantic Versioning](http://semver.org/).
4
4
5
+
## [4.7.1] - 2020-05-08
6
+
7
+
### Fixed
8
+
9
+
- Fix `AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'` exception on `from plotly.graph_objs import *` when `ipywidgets` is not installed. Error also occurred when importing `plotly.figure_factor`. It is now possible to import `plotly.graph_objs.FigureWidget` when `ipywidgets` is not installed, and an informative `ImportError` exception will be raised in the `FigureWidget` constructor ([#2443](https://github.com/plotly/plotly.py/issues/2443), [#1111](https://github.com/plotly/plotly.py/issues/1111)).
10
+
- Fix `TypeError: unhashable type: 'Template'` during `Figure` construction when `plotly.io.templates.default` is set to a `Template` object rather than a string.
Copy file name to clipboardexpand all lines: doc/python/creating-and-updating-figures.md
+10-8
Original file line number
Diff line number
Diff line change
@@ -613,20 +613,22 @@ There are also `for_each_xaxis()` and `for_each_yaxis()` methods that are analog
613
613
### Other Update Methods
614
614
615
615
Figures created with the plotly.py graphing library also support:
616
-
- the `update_layout_images()` method in order to [update background layout images](/python/images/),
617
-
- `update_annotations()` in order to [update annotations](/python/text-and-annotations/#multiple-annotations),
618
-
- and `update-shapes()` in order to [update shapes](/python/shapes/).
616
+
617
+
- the `update_layout_images()` method in order to [update background layout images](/python/images/),
618
+
-`update_annotations()` in order to [update annotations](/python/text-and-annotations/#multiple-annotations),
619
+
- and `update_shapes()` in order to [update shapes](/python/shapes/).
619
620
620
621
#### Chaining Figure Operations
621
622
622
623
All of the figure update operations described above are methods that return a reference to the figure being modified. This makes it possible the chain multiple figure modification operations together into a single expression.
623
624
624
625
Here is an example of a chained expression that creates:
625
-
- a faceted scatter plot with OLS trend lines using Plotly Express,
626
-
- sets the title font size using `update_layout()`,
627
-
- disables vertical grid lines using `update_xaxes()`,
628
-
- updates the width and dash pattern of the trend lines using `update_traces()`,
629
-
- and then displays the figure using `show()`.
626
+
627
+
- a faceted scatter plot with OLS trend lines using Plotly Express,
628
+
- sets the title font size using `update_layout()`,
629
+
- disables vertical grid lines using `update_xaxes()`,
630
+
- updates the width and dash pattern of the trend lines using `update_traces()`,
0 commit comments