File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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() ` ,
You can’t perform that action at this time.
0 commit comments