Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c2724c

Browse files
committed
fix awkward line break induced by autopep8
1 parent 75b465c commit 9c2724c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

examples/api/scatter_piecharts.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@
2929

3030
x = [0] + np.cos(np.linspace(2*math.pi*r2, 2*math.pi, 10)).tolist()
3131
y = [0] + np.sin(np.linspace(2*math.pi*r2, 2*math.pi, 10)).tolist()
32-
xy3 = list(zip(x,y))
32+
xy3 = list(zip(x, y))
3333

3434

3535
fig, ax = plt.subplots()
36-
ax.scatter(np.arange(3), np.arange(3), marker=(
37-
xy1, 0), s=sizes, facecolor='blue')
38-
ax.scatter(np.arange(3), np.arange(3), marker=(
39-
xy2, 0), s=sizes, facecolor='green')
40-
ax.scatter(np.arange(3), np.arange(3), marker=(
41-
xy3, 0), s=sizes, facecolor='red')
36+
d = np.arange(3)
37+
ax.scatter(d, d, marker=(xy1, 0), s=sizes, facecolor='blue')
38+
ax.scatter(d, d, marker=(xy2, 0), s=sizes, facecolor='green')
39+
ax.scatter(d, d, marker=(xy3, 0), s=sizes, facecolor='red')
4240
plt.show()

0 commit comments

Comments
 (0)