plotnine
plotnine copied to clipboard
A Grammar of Graphics for Python
(this is on current git head 52e33218b86165d90f5313d57c22465223219e98 ) ```python import pandas as pd import plotnine as p9 import numpy as np line_type_count = 5 df = pd.DataFrame( { "x": np.random.random(size=100),...
Plotnine is different from ggplot2 in this regard. Reference: https://stackoverflow.com/questions/59024019/add-text-to-figure-using-pythons-plotnine
Specifically, the shape `c` (the square) in the example below seems much rounder in the legend. The triangles `b` and `e` have a slightly rounded base, the pendagon `g` seems...
Dear, Does plotnine support swarmplot, which equals to seaborn.swarmplot or beeswarm in ggplot2 ?
Hello, all the examples and tutorial are based on iPython: %matplotlib inline # start generating some fancy graph How can I produce graphs in a simple python script ? f,...
Insets
Think about insets plots. Potential syntax ```python # 1. p_inset = ggplot() + ... p = ggplot() + ... + inset(p_inset) # 2. p_inset = ggplot(inset=True) + ... p =...
I do think there should be a minimal working example for every geom_* with an image to demonstrate what can one do with them similarly how it is done in...
Interactive panning and zooming in a Jupyter notebook (with the notebook backend) only affects the facet being manipulated. If the facets are constrained to use the same scale, which is...
Thanks for plotnine, I'm a big fan! I like working with a dark background. Using `plotnine.themes.theme_dark` gives this image, which has a lot of light area which doesn't work well...
## Could the bars (same as boxplot) be in xkcd style? ```python import pandas as pd import numpy as np from plotnine import * from plotnine.data import mtcars p =...