diff --git a/pyproject.toml b/pyproject.toml index fdd2ede..508b246 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.11.2", + "matplotlib>=3.7.3", + "statannotations>=0.6.0", "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