Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/tikzplotlib/_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,12 @@ 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
try:
dashOffset, dashSeq = line._unscaled_dash_pattern[:2]
except AttributeError:
# backwards-compatibility with matplotlib < 3.6.0
dashSeq = line._us_dashSeq
dashOffset = line._us_dashOffset

lst = list()
if dashSeq != default_dashSeq:
Expand Down