From 2d3eb6e2f744723f60a71a3cacf1ee553e865953 Mon Sep 17 00:00:00 2001 From: d31003 Date: Fri, 31 Jan 2025 23:14:03 -0600 Subject: [PATCH 1/2] Update package version and library dependencies - Bump package version to 1.0.1 - Update seaborn to version 0.13.2 - Update matplotlib to version 3.10.0 - Update statannotations to version 0.7.1 - Replace deprecated matplotlib.cm.get_cmap with mpl.colormaps.get_cmap --- pyproject.toml | 8 ++++---- swarm_visualizer/utility/legendplot_utils.py | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fdd2ede..3674b87 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "swarm_visualizer" -version = "0.0.1" +version = "1.0.1" authors = [ { name="UT Austin Swarm Lab", email="minkyu.choi@utexas.edu" }, ] @@ -19,9 +19,9 @@ classifiers = [ dependencies = [ "numpy", "pandas", - "seaborn==0.11.2", - "matplotlib==3.7.3", - "statannotations==0.6.0", + "seaborn==0.13.2", + "matplotlib==3.10.0", + "statannotations==0.7.1", "scipy" ] diff --git a/swarm_visualizer/utility/legendplot_utils.py b/swarm_visualizer/utility/legendplot_utils.py index 9316c80..a1c1d69 100644 --- a/swarm_visualizer/utility/legendplot_utils.py +++ b/swarm_visualizer/utility/legendplot_utils.py @@ -2,7 +2,6 @@ import seaborn as sns import matplotlib.pylab as pylab import matplotlib as mpl -from matplotlib.cm import get_cmap import numpy as np from typing import List, Dict @@ -175,7 +174,7 @@ def create_colorbar( cbar.set_ticks(ticks=np.arange(len(all_labels)), labels=all_labels) else: - cmap = get_cmap(palette) + cmap = mpl.colormaps.get_cmap(palette) norm = plt.Normalize(min(all_labels), max(all_labels)) cbar = mpl.colorbar.ColorbarBase( ax, cmap=cmap, norm=norm, orientation=orientation From b0fa8a1d8022857d6e45c8c1493e8aadf8bb7b37 Mon Sep 17 00:00:00 2001 From: d31003 Date: Fri, 31 Jan 2025 23:20:41 -0600 Subject: [PATCH 2/2] Relax library version constraints in dependencies - Change seaborn from fixed version 0.13.2 to minimum version >=0.11.2 - Change matplotlib from fixed version 3.10.0 to minimum version >=3.7.3 - Change statannotations from fixed version 0.7.1 to minimum version >=0.6.0 --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3674b87..508b246 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,9 +19,9 @@ classifiers = [ dependencies = [ "numpy", "pandas", - "seaborn==0.13.2", - "matplotlib==3.10.0", - "statannotations==0.7.1", + "seaborn>=0.11.2", + "matplotlib>=3.7.3", + "statannotations>=0.6.0", "scipy" ]