Comments (2)
@stoneyv, You do not need to call the draw
method, just print the plot or make sure it is the last object in the cell. And, all geoms accept the group aesthetic.
This should work for you
(ggplot(aes('x', 'y' )) +
geom_polygon(datapoly_df, aes(fill='value', group='iid')))
And, you should have this instead
'iid': np.repeat(ids, 4),
from plotnine.
About geo
stuff. I am thinking about it. I have an implementation (written a while back) that plots a geopandas
dataframe, but I do not quite like it.
from plotnine.
Related Issues (20)
- Release: plotnine-0.13.1
- Can't edit text when saving a plotnine figure to an svg file HOT 3
- abnormal legend HOT 3
- Release: plotnine-0.13.2
- theme_minimal crops out facet labels (not happening with other themes) HOT 3
- Legend now always in 2 rows (text is below and not right to symbol) when using theme(legend_position='bottom')
- Release: plotnine-0.13.3
- setting `theme(axis_text_x=element_blank())` results in an error starting a v0.13.3
- dynamic labels i.e. labs(fill=lambda x: x['example_col'].iloc[0]) HOT 4
- Release: plotnine-0.13.4
- AttributeError: 'YAxis' object has no attribute 'get_tick_params' on example plot HOT 2
- 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
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.