Skip to content

Commit

Permalink
Mute color with hue warning for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Jan 28, 2021
1 parent 35ae624 commit 6c88f98
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions seaborn/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ def _draw_figure(fig):
def _default_color(method, hue, color, kws):
"""If needed, get a default color by using the matplotlib property cycle."""
if hue is not None:
if color is not None:
msg = "`color` is ignored when `hue` is assigned."
warnings.warn(msg)
# This warning is probably user-friendly, but it's currently triggered
# in a FacetGrid context and I don't want to mess with that logic right now
# if color is not None:
# msg = "`color` is ignored when `hue` is assigned."
# warnings.warn(msg)
return None

if color is not None:
Expand Down

0 comments on commit 6c88f98

Please sign in to comment.