8000 fixed whitespace problem · matplotlib/matplotlib@1bb8f86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bb8f86

Browse files
fixed whitespace problem
1 parent e8091cb commit 1bb8f86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/lines_bars_and_markers/hat_graph.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
ax.legend()
2929
ax.set_xlabel('Games')
3030
def Label(heights, rects):
31-
"""Attach a text label on top of each bar. """
32-
i=0
31+
"""Attach a text label on top of each bar."""
32+
i = 0
3333
for rect in rects:
34-
height=int(heights[i])
35-
i+=1
34+
height = int(heights[i])
35+
i += 1
3636
ax.annotate('{}'.format(height),
3737
xy=(rect.get_x() + rect.get_width() / 2, height),
3838
xytext=(0, 4), # 4 points vertical offset.

0 commit comments

Comments
 (0)
0