From e33d7d3f04680687a3de06929b444eb0175234f2 Mon Sep 17 00:00:00 2001 From: Olivier Date: Thu, 19 Oct 2023 00:33:48 +0200 Subject: [PATCH] Add files via upload Minor fix for "shade" keyword deprecation in sns.kdeplot --- src/compare_essential_dynamics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compare_essential_dynamics.py b/src/compare_essential_dynamics.py index 3fc39f0..f60c332 100755 --- a/src/compare_essential_dynamics.py +++ b/src/compare_essential_dynamics.py @@ -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]