Skip to content

Commit

Permalink
fix bug in stats plotting to work with seaborn v0.13.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
yalinli2 committed Oct 2, 2023
1 parent 8af0314 commit cc700f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qsdsan/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,10 @@ def _plot_corr_bubble(corr_df, ratio, **kwargs):
for label in g.ax.get_xticklabels():
label.set_rotation(90)

for artist in g.legend.legendHandles:
artist.set_edgecolor('0.5')
# # Originally `artist.set_edgecolor('0.5')`, but would trigger an error
# # with `seaborn` v0.13.0, and unclear what this is doing, took out
# for artist in g.legend.legendHandles:
# artist.set_markeredgecolor('0.5')

for key in g.ax.spines.keys():
g.ax.spines[key].set(color='k', linewidth=0.5, visible=True)
Expand Down

0 comments on commit cc700f2

Please sign in to comment.