From 13513ce8470ae1ae72a6f6b264672fb2b58ba5e6 Mon Sep 17 00:00:00 2001 From: Thomas Gillis <25429825+thomasgillis@users.noreply.github.com> Date: Thu, 2 Mar 2023 17:57:03 -0600 Subject: [PATCH] solves attribute error with matplotlib `3.7.0` the error on most recent matplotlib version is the following: ```bash AttributeError: 'Line2D' object has no attribute '_us_dashSeq' ``` --- src/tikzplotlib/_path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tikzplotlib/_path.py b/src/tikzplotlib/_path.py index 11381d59..4b07f2a3 100644 --- a/src/tikzplotlib/_path.py +++ b/src/tikzplotlib/_path.py @@ -469,8 +469,8 @@ def mpl_linestyle2pgfplots_linestyle(data, line_style, line=None): default_dashOffset, default_dashSeq = mpl.lines._get_dash_pattern(line_style) # get dash format of line under test - dashSeq = line._us_dashSeq - dashOffset = line._us_dashOffset + dashOffset = line._dash_pattern[0] + dashSeq = line._dash_pattern[1] lst = list() if dashSeq != default_dashSeq: