Skip to content

Commit

Permalink
warning -> error
Browse files Browse the repository at this point in the history
  • Loading branch information
coxipi committed Jun 13, 2024
1 parent f9a368a commit d4dad67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/figanos/matplotlib/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1468,9 +1468,9 @@ def draw_heatmap(*args, **kwargs):
set(plot_kw.keys()) - set(plot_kw_fg.keys()) - set(plot_kw_hm.keys())
)
if unused_keys != set():
warnings.warn(
f"`plot_kw` containted extra keywords: {unused_keys} that can't be used with `sns.heatmap` or `sns.FacetGrid`. "
"These keywords will be ignored"
raise ValueError(
f"`heatmap` got unexpected keywords in `plot_kw`: {unused_keys}. Keywords in `plot_kw` should be keywords "
"allowed in `sns.heatmap` or `sns.FacetGrid`. "
)

g = sns.FacetGrid(df, **plot_kw_fg)
Expand Down

0 comments on commit d4dad67

Please sign in to comment.