Skip to content

Conversation

@abrazhe
Copy link

@abrazhe abrazhe commented Nov 29, 2022

Hi, I tried to plot a table with joypy with hist=True and "color" being a list of colors and got an error from matplotlib (v3.6.0).

Error message:

"ValueError: The 'color' keyword argument must have one color per dataset, but 1 datasets and 2 colors were provided"

How to reproduce:

import numpy as np
import pandas as pd
import joypy

table = pd.DataFrame({'one':np.random.randn(1000), 'two': 
np.random.randn(1000) + 5})

joypy.joyplot(table, color=['skyblue', 'fuchsia'], hist=True)

… of colors.

## Error message:
"ValueError: The 'color' keyword argument must have one color per 
dataset, but 1 datasets and 2 colors were provided"

## How to reproduce:

```
import numpy as np
import pandas as pd
import joypy

table = pd.DataFrame({'one':np.random.randn(1000), 'two': 
np.random.randn(1000) + 5})

joypy.joyplot(table, color=['skyblue', 'fuchsia'], hist=True)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant