Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"ValueError: zero-size array to reduction operation minimum which has no identity" on hue usage #2195

Closed
jjisnow opened this issue Aug 15, 2020 · 1 comment

Comments

@jjisnow
Copy link

jjisnow commented Aug 15, 2020

Hi, I'm trying to use the hue parameter in my charts, but whenever it gets added, the figure fails to trigger.

From the examples at https://seaborn.pydata.org/tutorial/relational.html:

import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set(style="darkgrid") tips = sns.load_dataset("tips") sns.relplot(x="total_bill", y="tip", data=tips);

The above draws correctly, but when I add:

sns.relplot(x="total_bill", y="tip", hue="smoker", data=tips);

An error message is triggered, traced back to _backend_tk.py, backend_tkagg.py

This is also true of any other plots requiring the 'style' parameter in a default scatterplot

This is my Python venv environment, currently using Python 3.8:

Pillow 7.2.0
certifi 2020.6.20
cycler 0.10.0
kiwisolver 1.2.0
matplotlib 3.3.1
numpy 1.19.1
pandas 1.1.0
pip 20.2.2
pyparsing 2.4.7
python-dateutil 2.8.1
pytz 2020.1
scipy 1.5.2
seaborn 0.10.1
setuptools 49.6.0
six 1.15.0
@jjisnow
Copy link
Author

jjisnow commented Aug 15, 2020

Duplicate of #2194

@mwaskom mwaskom closed this as completed Aug 15, 2020
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

No branches or pull requests

2 participants