Skip to content

Commit 77554b4

Browse files
committed
Codestyle changes in path
1 parent 538ccea commit 77554b4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tikzplotlib/_path.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,9 @@ def draw_pathcollection(data, obj):
259259
dd_strings = []
260260
for row, code in zip(dd, codes):
261261
if code == 1: # MOVETO
262-
dd_strings += [
263-
[]
264-
] # Inserts a newline to trigger "move to" in pgfplots
265-
dd_strings += [[fmt.format(val) for val in row]]
262+
# Inserts a newline to trigger "move to" in pgfplots
263+
dd_strings.append([])
264+
dd_strings.append([fmt.format(val) for val in row])
266265
dd_strings = np.array(dd_strings[1:], dtype=object)
267266

268267
if len(obj.get_sizes()) == len(dd):

0 commit comments

Comments
 (0)