Skip to content

Commit 6f9cfa4

Browse files
authored
Update package version and library dependencies (#35)
* 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 * 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
1 parent 581b392 commit 6f9cfa4

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "swarm_visualizer"
7-
version = "0.0.1"
7+
version = "1.0.1"
88
authors = [
99
{ name="UT Austin Swarm Lab", email="minkyu.choi@utexas.edu" },
1010
]
@@ -19,9 +19,9 @@ classifiers = [
1919
dependencies = [
2020
"numpy",
2121
"pandas",
22-
"seaborn==0.11.2",
23-
"matplotlib==3.7.3",
24-
"statannotations==0.6.0",
22+
"seaborn>=0.11.2",
23+
"matplotlib>=3.7.3",
24+
"statannotations>=0.6.0",
2525
"scipy"
2626
]
2727

swarm_visualizer/utility/legendplot_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import seaborn as sns
33
import matplotlib.pylab as pylab
44
import matplotlib as mpl
5-
from matplotlib.cm import get_cmap
65
import numpy as np
76

87
from typing import List, Dict
@@ -175,7 +174,7 @@ def create_colorbar(
175174
cbar.set_ticks(ticks=np.arange(len(all_labels)), labels=all_labels)
176175

177176
else:
178-
cmap = get_cmap(palette)
177+
cmap = mpl.colormaps.get_cmap(palette)
179178
norm = plt.Normalize(min(all_labels), max(all_labels))
180179
cbar = mpl.colorbar.ColorbarBase(
181180
ax, cmap=cmap, norm=norm, orientation=orientation

0 commit comments

Comments
 (0)