plotnine is a python plotting package that implements a "Grammar of Graphics" . It is based on the R package ggplot2 and has an API that is similar.
Questions tagged [plotnine]
179 questions
0
votes
0 answers
Plotnine (ggplot) : Remove some elements from a legend
I am coding in python's plotnine, but hoping that R ggplotters may also be able to offer a solution.
Consider the below plot. It has two states, 'pass' and 'fail' and I want to highlight the 'fail' state. I don't really need the legend to include…

brb
- 1,123
- 17
- 40
0
votes
1 answer
How do I set scaling for axes using plotnine?
I am using plotnine library to visualise data. I use for loop to create graphs for different groups of my dataset. Range of groups is different (varies from few tens to tens of thousands).
Here my problem arises. I would like to have more precise…

quakenstein
- 19
- 3
0
votes
0 answers
Can python plotnine draw charts on web application?
I'm learning fastapi web framework for my data science visualization project.
I know python plotnine is usually used on notebook or something. Can I use plotnine to draw any ggplot2 charts on the web framework?
Any data visualization library to work…

Jun Jang
- 1
- 1
- 1
0
votes
1 answer
labeling Confidence interval and coefficient using ggplot in Pandas
I tried to label coefficient and Confidence interval using the following code:
pp =p.ggplot(leadslags_plot, p.aes(x = 'label', y = 'mean',
ymin = 'lb',
ymax = 'ub')) +\
p.geom_line(p.aes(group = 1),color = "b") +\
…

Jui Sen
- 377
- 3
- 12
0
votes
0 answers
Pyscript and Plotnine
I am trying to use Plotnine: https://plotnine.readthedocs.io/en/stable/index.html with PyScript. My code looks as follows: