diff --git a/CHANGES b/CHANGES index 990ae9d8..d6ab9d92 100644 --- a/CHANGES +++ b/CHANGES @@ -21,6 +21,9 @@ Changes: - alchemlyb adopts SPEC 0 (replaces NEP 29) https://scientific-python.org/specs/spec-0000/ +Fixes + - Support matplotlib 3.9.0 (issue alchemistry/flamel#28, PR#319). + 21/05/2024 xiki-tempula diff --git a/devtools/conda-envs/test_env.yaml b/devtools/conda-envs/test_env.yaml index a8795f1c..bef524b7 100644 --- a/devtools/conda-envs/test_env.yaml +++ b/devtools/conda-envs/test_env.yaml @@ -8,7 +8,7 @@ dependencies: - pymbar>=4 - scipy - scikit-learn -- matplotlib +- matplotlib>=3.7 - loguru - pyarrow diff --git a/environment.yml b/environment.yml index 025ff953..95512668 100644 --- a/environment.yml +++ b/environment.yml @@ -9,5 +9,5 @@ dependencies: - scipy - scikit-learn - pyarrow -- matplotlib +- matplotlib>=3.7 - loguru diff --git a/setup.py b/setup.py index 67df7d72..668a9c3b 100755 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ "pymbar>=4", "scipy", "scikit-learn", - "matplotlib", + "matplotlib>=3.7", "loguru", "pyarrow", ], diff --git a/src/alchemlyb/visualisation/ti_dhdl.py b/src/alchemlyb/visualisation/ti_dhdl.py index cfdb2238..1cd91728 100644 --- a/src/alchemlyb/visualisation/ti_dhdl.py +++ b/src/alchemlyb/visualisation/ti_dhdl.py @@ -222,6 +222,6 @@ def getInd(r=ri, z=[0]): color="#151B54", ) lege = ax.legend(prop=FP(size=14), frameon=False, loc=1) - for l in lege.legendHandles: + for l in lege.legend_handles: l.set_linewidth(10) return ax