Comments (2)
This is not a bug. "nudge_y = 0.00075"
is equivalent to position = position_nudge(y=0.00075)
So nudging overwrites position=position_dodge(...)
.
The solution is staged aesthetic evaluation.
aes(y=stage("coly", after_scale="y+0.00075"))
where "coly"
is the original column that the y-aesthetic is mapped to. This modifies y
after the any position adjustments have taken place.
At this point the nudge_y
& nudge_x
parameters are there for historical reasons. They predate the more powerful staged evaluation.
from plotnine.
Thanks for the response!
from plotnine.
Related Issues (20)
- brewer_pal() not working HOT 3
- What's the syntax for geom_smooth with binomial family? HOT 2
- `geom_smooth` doesn't apply `alpha` HOT 1
- Add palmers penguins data
- geom_boxblot width incorrect if number of subsets varies
- Specifying dpi option in theme does not work in quarto HOT 6
- break axis HOT 2
- Release: plotnine-0.13.5
- Named Reverse colormaps not available anymore HOT 1
- Strange behavior with geom_label() using boxstyle other than default (round) exept for round4
- Bug after changing order of factors on facet_grid HOT 1
- Release: plotnine-0.13.6
- Please loosen the restrictions on theme(figure_size=( , )) HOT 2
- Using theme_matplotlib() fails with `'object' object has no attribute 'startswith'` HOT 1
- Create doc similar to ggplot2 aes specification page HOT 1
- Change color of only one x axis label - plotnine HOT 3
- 2024 Plotnine Contest
- geom_text: family aesthetic does not seem to use mappings HOT 1
- Passing None an aes color mapping value raises error
- Support for custom linetypes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotnine.