Skip to content

Commit d336ebb

Browse files
committed
Remove **kwargs from plot.timeseries()
timeseries() is a convenience function — kwargs were only forwarded to plotly's update_layout and silently ignored for matplotlib. Update README and notebook to use fig.update_layout() directly. Closes #463
1 parent 99ea0df commit d336ebb

3 files changed

Lines changed: 7 additions & 1693 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ cc.plot.scatter()
103103
Timeseries plots can either be static and report-friendly ([matplotlib](https://matplotlib.org/)) or interactive with zoom functionality ([plotly](https://plotly.com/python/)).
104104

105105
```python
106-
cc["HKNA"].plot.timeseries(width=1000, backend="plotly")
106+
fig = cc["HKNA"].plot.timeseries(backend="plotly")
107+
fig.update_layout(width=1000)
107108
```
108109

109110
![timeseries](https://raw.githubusercontent.com/DHI/modelskill/main/images/plotly_timeseries.png)

0 commit comments

Comments
 (0)