From 575d49e6785b41ff47746ce224038a32fa562c79 Mon Sep 17 00:00:00 2001 From: Thomas Grandjean Date: Thu, 9 Mar 2023 10:14:48 +0100 Subject: [PATCH 1/2] Rename ncol parameter to ncols Following [this PR](https://github.com/matplotlib/matplotlib/commit/958e329b198a9036fc121d11775815ded7c9acad) in matplotlib and the 3.6.0 version released in sept. 2022, _ncol was renamed _ncols --- src/tikzplotlib/_legend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tikzplotlib/_legend.py b/src/tikzplotlib/_legend.py index 29d8e635..bfe8683a 100644 --- a/src/tikzplotlib/_legend.py +++ b/src/tikzplotlib/_legend.py @@ -78,8 +78,8 @@ def draw_legend(data, obj): if alignment: data["current axes"].axis_options.append(f"legend cell align={{{alignment}}}") - if obj._ncol != 1: - data["current axes"].axis_options.append(f"legend columns={obj._ncol}") + if obj._ncols != 1: + data["current axes"].axis_options.append(f"legend columns={obj._ncols}") # Write styles to data if legend_style: From 00d171e8553eb79f8cbb2cd5c753bf2c3b67866b Mon Sep 17 00:00:00 2001 From: Thomas Grandjean Date: Thu, 9 Mar 2023 10:16:49 +0100 Subject: [PATCH 2/2] Update pyproject.toml update matplotlib version dependency --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f1ee514f..6b2d6181 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ keywords = ["latex", "tikz", "matplotlib", "graphics"] dynamic = ["version"] requires-python = ">=3.7" dependencies = [ - "matplotlib >= 1.4.0", + "matplotlib >= 3.6.0", "numpy", "Pillow", "webcolors",