Skip to content

Commit

Permalink
Support matplotlib 3.9.0 (#377)
Browse files Browse the repository at this point in the history
* fix failure related to outdated matplotlib usage (legend_handles)
* fix alchemistry/flamel#28
* update CHANGES
  • Loading branch information
xiki-tempula committed Jul 4, 2024
1 parent 584588c commit 5a73cc4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies:
- pymbar>=4
- scipy
- scikit-learn
- matplotlib
- matplotlib>=3.7
- loguru
- pyarrow

Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ dependencies:
- scipy
- scikit-learn
- pyarrow
- matplotlib
- matplotlib>=3.7
- loguru
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"pymbar>=4",
"scipy",
"scikit-learn",
"matplotlib",
"matplotlib>=3.7",
"loguru",
"pyarrow",
],
Expand Down
2 changes: 1 addition & 1 deletion src/alchemlyb/visualisation/ti_dhdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a73cc4

Please sign in to comment.