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)
- ValueError: The truth value of an array with more than one element is ambiguous. HOT 3
- What happened to minor breaks in 2023 HOT 1
- `geom_boxplot` example contains error on documentation site
- Feature Request: Symlog Scale Support in plotnine HOT 1
- theming for axis ticks ignores "size" argument HOT 1
- import of ggplot from plotnine
- importing ggplot from plotnine HOT 2
- Unrecognised timezone class <class 'datetime.timezone'> HOT 1
- scale_x_discrete fails when using {number:str} dictionary in labels parameter HOT 3
- Using (plot) values as color in aes returns an error HOT 1
- Get access to artist or axes to enable rasterisation HOT 3
- Warnings when used with pandas 2.1.0 HOT 2
- Release: plotnine-0.12.3
- Does plotnine 0.12.3 work with mizani 0.10.0? HOT 3
- Additions to facets HOT 2
- ggtitle or labs(title=) align left instead of center after updating from 0.10.1 to 0.12.3 HOT 2
- plotnine figure of ipynb with vscode is displayed too much larger than jupyter HOT 1
- AttributeError: 'RangeDiscrete' object has no attribute 'range' when calling scale_y_discrete HOT 3
- Add specific gene labels to geom_point volcanoplot HOT 2
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.