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
The [](:class:`~plotnine.layer.layer`) constructor now handles both geom-first
48
+
and stat-first creation. When only a `stat` is provided, the geom is
49
+
automatically derived from the stat's default.
50
+
51
+
```python
52
+
# Before
53
+
layer.from_geom(geom_point())
54
+
layer.from_stat(stat_bin())
55
+
geom_point().to_layer()
56
+
57
+
# After
58
+
layer(geom=geom_point())
59
+
layer(stat=stat_bin())
60
+
layer(geom=geom_point())
61
+
```
62
+
41
63
### Bug Fixes
42
64
43
65
- Fixed [](:class:`~plotnine.geom_smooth`) / [](:class:`~plotnine.stat_smooth`) when using a linear model via "lm" with weights for the model to do a weighted regression. This bug did not affect the formula API of the linear model. ({{< issue 1005 >}})
0 commit comments