Skip to content

Commit 1283313

Browse files
committed
docs(changelog): add entry for axis position feature
1 parent 43e20a1 commit 1283313

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

doc/changelog.qmd

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ title: Changelog
4444
- Added [](:class:`~plotnine.composition.inset_element`) with which you can insert plot
4545
compositions or images into another plot.
4646

47+
- Position scales gained a `position` parameter, so you can move an axis to the
48+
opposite side of the panel. Use `position="top"` for the x axis and
49+
`position="right"` for the y axis.
50+
51+
```python
52+
ggplot(df, aes("x", "y")) + geom_point() + scale_x_continuous(position="top")
53+
```
54+
55+
Each axis side can be styled independently with new per-side themeables, e.g.
56+
`axis_text_x_top`, `axis_title_y_right`, `axis_line_x_top` and
57+
`axis_ticks_major_y_right`.
58+
59+
```python
60+
theme(axis_text_x_top=element_text(color="blue"))
61+
```
62+
4763
### API Changes
4864

4965
- Removed `geom.to_layer()`, `stat.to_layer()`, `annotate.to_layer()`,

0 commit comments

Comments
 (0)