plotnine icon indicating copy to clipboard operation
plotnine copied to clipboard

A Grammar of Graphics for Python

Results 138 plotnine issues
Sort by recently updated
recently updated
newest added

### Discussed in https://github.com/has2k1/plotnine/discussions/788 Originally posted by **has2k1** May 23, 2024 We are excited to announce that the 2024 Plotnine Contest! Plotnine is a visualization library that brings the [Layered...

Gold

Hi, all. On my machine `theme_matplotlib()` consistently fails. Here's an example: ```python from pandas import DataFrame from plotnine import * theme_set(theme_matplotlib()) PLOT = ( ggplot(DataFrame([{"X":0,"Y":0},{"X":1,"Y":2}])) + aes('X', 'Y') + geom_point()...

Invalid

Thank you for creating a good package. I set the height of figure_size to 30, so the chart needs to be viewed vertically. However, the height of figure_size is currently...

Enhancement
Question

There's a bug that's haunting me right now with the order of factors with facet_grid. I'm posting it here in case other people have seen it, but I couldn't reproduce...

I am trying to manually set the color of my axis labels with a list of colors of equal length as the labels, just as you can do with R....

Enhancement
Question

Hi, First of all, thank you for bring ggplot to python, I love this package :) I'm having some trouble using `adjust_text` to make some labels easier to read --...

Reprex

Hi, How to add axis breaks using plotnine ? ![image](https://github.com/has2k1/plotnine/assets/29703450/e65bfb16-57bd-437f-998b-897c61290b39)

Feature
Extensions

Hi, I made a figure using: ``` ggplot(obs,aes(x='library_id',y='percentage',fill='leiden')) + geom_bar(stat='identity') + scale_fill_manual(values=adata.uns['leiden_colors']) + theme(axis_text_x=element_text(angle=45)) ``` The legend is weired, some items were lost (1, 19, 20, and so on): ![image](https://github.com/has2k1/plotnine/assets/29703450/941aa9a8-53d2-4045-a19f-e2524fa46fc4)...

Enhancement
Question

Basically title. Is there a way within plot nine to add images in place of labels to the x axis tick positions? I know you can get the matplotlib figure...

Feature

Whenever an animation of figures containing colorbars is generated and saved via `PlotnineAnimation`, an artifact with a repeated colorbar, centered at coordinates (0, 0), appears in the animation. I would...