Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes in docstrings #1063

Merged
merged 8 commits into from
Mar 26, 2024
Prev Previous commit
Next Next commit
Fix #1047: Improve documentation for parameter position.
  • Loading branch information
ASmirnov-HORIS committed Mar 25, 2024
commit 700231c933171a36511d35fdb64d21dc21f1a9e7
3 changes: 2 additions & 1 deletion future_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Support arrow() in geom_spoke() [[#986](https://github.com/JetBrains/lets-plot/issues/986)].
- Support geom_spoke() in geom_livemap() [[#988](https://github.com/JetBrains/lets-plot/issues/988)].
- arrow on curve sometimes looks weird [[#1041](https://github.com/JetBrains/lets-plot/issues/1041)].
- Improve documentation for parameter `position` [[#1047](https://github.com/JetBrains/lets-plot/issues/1047)].
- Livemap: `vjust` implemented incorrectly [[#1051](https://github.com/JetBrains/lets-plot/issues/1051)].
- `geom_density2d`: the doc missing some 'computed' variables [[#1062](https://github.com/JetBrains/lets-plot/issues/1062)]
- `geom_density2d`: the doc missing some 'computed' variables [[#1062](https://github.com/JetBrains/lets-plot/issues/1062)].
- Missing marginal gridlines.
5 changes: 3 additions & 2 deletions python-package/lets_plot/plot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ def layer(geom=None, stat=None, data=None, mapping=None, position=None, **kwargs
Aesthetic mappings describe the way that variables in the data are
mapped to plot "aesthetics".
position : str or `FeatureSpec`
Position adjustment, either as a string ('identity', 'stack', 'dodge', ...),
or the result of a call to a position adjustment function.
Position adjustment.
Either a position adjustment name: ‘dodge’, ‘dodgev’, ‘jitter’, ‘nudge’, ‘jitterdodge’, ‘fill’,
‘stack’ or ‘identity’, or the result of calling a position adjustment function (e.g., position_dodge() etc.).
kwargs:
Other arguments passed on to layer. These are often aesthetics settings, used to set an aesthetic to a fixed
value, like color = "red", fill = "blue", size = 3 or shape = 21. They may also be parameters to the
Expand Down