Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Minor fix for "shade" keyword deprecation in sns.kdeplot
  • Loading branch information
oliserand authored Oct 18, 2023
1 parent e22e3c0 commit e33d7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compare_essential_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_energy_basins(pcs, traj, outbasename, marker="o",
Returns:
The basin centroids
"""
subplot = sns.kdeplot(x=pcs[:, 0], y=pcs[:, 1], shade=True, alpha=0.2,
subplot = sns.kdeplot(x=pcs[:, 0], y=pcs[:, 1], fill=True, alpha=0.2,
levels=kde_levels, cmap="jet_r")
basin_paths = subplot.collections[-1].get_paths()
basins = [basin.vertices for basin in basin_paths]
Expand Down

0 comments on commit e33d7d3

Please sign in to comment.