ridgeline histograms different colours

39 Views Asked by At

I am trying to create a ridgeline plot and I want every one of the subplots to have a different colour. Initially, I achieved this with this command:

import joypy
import numpy as np

fig, axes = joypy.joyplot(log_df, color=["k","b","r","g"])"

Resulting plot:

Resulting plot

However, this resulted in a plot that wasn't a histogram. I want to create histograms. Thus, I used this:

fig, axes = joypy.joyplot(log_df, fill= True, hist= True, bins=128, overlap = 0, color=["k","b","r","g"])

I, then, got this error message:

The 'color' keyword argument must have one color per dataset, but 1 datasets and 4 colors were provided

I hadn't got this message before. I only get it with the histogram. Do you have any idea how I can create histograms that have the different colours that I want?

I was trying to get subplots of different colours, but it doesn't work when my plots are histograms.

0

There are 0 best solutions below