We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8091cb commit 1bb8f86Copy full SHA for 1bb8f86
examples/lines_bars_and_markers/hat_graph.py
@@ -28,11 +28,11 @@
28
ax.legend()
29
ax.set_xlabel('Games')
30
def Label(heights, rects):
31
- """Attach a text label on top of each bar. """
32
- i=0
+ """Attach a text label on top of each bar."""
+ i = 0
33
for rect in rects:
34
- height=int(heights[i])
35
- i+=1
+ height = int(heights[i])
+ i += 1
36
ax.annotate('{}'.format(height),
37
xy=(rect.get_x() + rect.get_width() / 2, height),
38
xytext=(0, 4), # 4 points vertical offset.
0 commit comments