Skip to content
Advertisement

Is position_dodge2() working for python with plotnine?

I’m using ggplot in python with plotnine, I have this piece of code:

JavaScript

that plots this figure:

plot

And I want to have the same size bars, even if in some cases like case 0 there is only one bar. I know I should do it with:

JavaScript

But I’m getting the following error in python:

JavaScript

Do you know how to solve this?

Advertisement

Answer

You need to upgrade your version of plotnine to v0.6.0.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement