Skip to content

Commit

Permalink
fix us.dash deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
pagmatt committed Mar 29, 2024
1 parent 41c988a commit efd0158
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/tikzplotlib/_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,7 @@ 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, dashSeq = line._unscaled_dash_pattern

lst = list()
if dashSeq != default_dashSeq:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def plot():
]

for _ in range(N):
polygon = Polygon(np.random.rand(N, 2), True)
polygon = Polygon(np.random.rand(N, 2), closed=True)
patches.append(polygon)

colors = 100 * np.random.rand(len(patches))
Expand Down

0 comments on commit efd0158

Please sign in to comment.