8000 Merge pull request #18943 from anntzer/sp · matplotlib/matplotlib@38f20a3 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 38f20a3

Browse files
authored
Merge pull request #18943 from anntzer/sp
Small cleanup to StepPatch._update_path.
2 parents 17c82a3 + a6f119f commit 38f20a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/patches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,8 @@ def _update_path(self):
10091009
else:
10101010
xy = np.column_stack([y, x])
10111011
verts.append(xy)
1012-
codes.append(np.array([Path.MOVETO] + [Path.LINETO]*(len(xy)-1)))
1013-
self._path = Path(np.vstack(verts), np.hstack(codes))
1012+
codes.append([Path.MOVETO] + [Path.LINETO]*(len(xy)-1))
1013+
self._path = Path(np.concatenate(verts), np.concatenate(codes))
10141014

10151015
def get_data(self):
10161016
"""Get `.StepPatch` values, edges and baseline as namedtuple."""

0 commit comments

Comments
 (0)
0