Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix awkward line break induced by autopep8
  • Loading branch information
twmr committed Aug 28, 2014
commit 9c2724ca34bb7d76b76ffe20f304cef65ab8391c
12 changes: 5 additions & 7 deletions examples/api/scatter_piecharts.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@

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


fig, ax = plt.subplots()
ax.scatter(np.arange(3), np.arange(3), marker=(
xy1, 0), s=sizes, facecolor='blue')
ax.scatter(np.arange(3), np.arange(3), marker=(
xy2, 0), s=sizes, facecolor='green')
ax.scatter(np.arange(3), np.arange(3), marker=(
xy3, 0), s=sizes, facecolor='red')
d = np.arange(3)
ax.scatter(d, d, marker=(xy1, 0), s=sizes, facecolor='blue')
ax.scatter(d, d, marker=(xy2, 0), s=sizes, facecolor='green')
ax.scatter(d, d, marker=(xy3, 0), s=sizes, facecolor='red')
plt.show()