Comments (5)
Please provide an example. Thanks.
from plotnine.
Yeah, I haven't been able to boil down my particular application into a test-case that show's the failure, yet. Will do, though.
from plotnine.
This modified example from the tests brings up a similar issue
n = 4 # No. of ribbions in a vertical stack
m = 10 # Points
width = 2*np.pi # width of each ribbon
x = np.linspace(0, width, m)
df = pd.DataFrame({
'x': np.tile(x, n),
'ymin': np.hstack([np.sin(x)+2*i for i in range(n)]),
'ymax': np.hstack([np.sin(x)+2*i+1 for i in range(n)]),
'z': np.repeat(range(n), m)
})
(ggplot(df, aes('x',ymin='ymin', ymax='ymax',
fill='factor(z)'))
+ geom_ribbon()
+ facet_wrap('~ z')
Problem is caused by pandas-dev/pandas#16793 at
plotnine/plotnine/facets/facet_wrap.py
Line 146 in 164003d
plotnine/plotnine/facets/facet_grid.py
Line 153 in 164003d
from plotnine.
Thanks for digging in to the issue. I wonder if we could fix it by explicitly sorting by ts
? I tried that from the outside, but it didn't work.
from plotnine.
I have a fix lined up.
from plotnine.
Related Issues (20)
- `ggtitle` should accept keyword arguments
- Allow to pass `limitsize=False` to `theme()` HOT 1
- `geom_pointdensity` doesn't work with facets
- geom_bar and order of categorical variables. HOT 2
- TypeError: asarray() got an unexpected keyword argument 'copy' with geom_smooth(method='loess') HOT 6
- Should `geom_boxplot` with disabled outliers rescale the axis? HOT 1
- Inconsistent ordering between legend and `geom_boxplot` when using `coord_flip` HOT 1
- Artifacts in PlotnineAnimation HOT 2
- Is there a way to add images onto the x axis? HOT 5
- Publish documentation for older versions of the library
- stat_summary_bin multiple errors HOT 1
- Link to husl colors leads to a non-existent page
- Support for theme option plot_title_position?
- position_dodge not working with categorical y and continous x variables HOT 1
- axis_text_x=p9.element_text(margin=...) has no effect HOT 1
- Wrong type hint for aes.__init__
- quantiles drawn by geom_violin's draw_quantiles option are incorrect HOT 2
- `geom_segment`'s `lineend` parameter has no effect
- `facet_wrap` + `geom_abline` fails if column name contains space HOT 1
- geom_col: overlapping x-axis labels when using `element_text(angle=45)` HOT 3
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.