Skip to content

Commit

Permalink
Fix exception caused by weired seaborn-pyplot interaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
boehmseb committed Sep 11, 2020
1 parent c40e32c commit d84c1fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion varats/varats/plots/blame_diff_correlation_matrix.py
Expand Up @@ -85,7 +85,14 @@ def logit_scatterplot(
line_kws={'alpha': 0.25}
)
# scatterplot with the two clusters as hue
sns.scatterplot(x='x_values', y='y_values', hue='target', data=data, ax=ax)
sns.scatterplot(
x='x_values',
y='y_values',
# https://github.com/mwaskom/seaborn/issues/2194
hue=data['target'].tolist(),
data=data,
ax=ax
)
pad_axes(ax, 0.01, 0.01)
pad_axes(ax2, 0.01, 0.01)
align_yaxis(ax, 0, ax2, 0)
Expand Down

0 comments on commit d84c1fa

Please sign in to comment.