Skip to content

Instantly share code, notes, and snippets.

@datavistics
Created September 8, 2017 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datavistics/86bfe08c7d653e08c4c9a33001f8f88e to your computer and use it in GitHub Desktop.
Save datavistics/86bfe08c7d653e08c4c9a33001f8f88e to your computer and use it in GitHub Desktop.
An attempt to use plotnine to create a barplot with a line.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raijinspecial
Copy link

sorry for the noob question, but I am trying to change the colors of bars plotted using geom_col. I used fill to color them by a category from my dataframe, but I would like to be able to specify which color represents a specific group, I am failing to find a clear way to do this.

Plotnine is wonderful, its my go to now.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment