Skip to content

Commit 5f5210d

Browse files
committed
matplotlib < 7
1 parent 4686f86 commit 5f5210d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/work_precision_sets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
python-version: 3.12
2424
- name: Install pybamm
25-
run: python -m pip install -U "pybamm[all,jax]"
25+
run: python -m pip install -U "pybamm[all,jax]" "matplotlib<=3.7"
2626
- name: Run time_vs_* benchmarks for PyBaMM
2727
run: |
2828
python benchmarks/work_precision_sets/discharge_curve.py

benchmarks/work_precision_sets/discharge_curve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
voltage_difference = np.abs(voltage_sol[0:end_index] - comsol_voltage[0:end_index])
8484

8585
# plot discharge curves and absolute voltage_difference
86-
color = next(ax._get_lines.prop_cycler)["color"]
86+
color = ax.get_lines().get_color()
8787
discharge_curve.plot(
8888
comsol_discharge_capacity, comsol_voltage, color=color, linestyle=":"
8989
)

0 commit comments

Comments
 (0)