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

Skip to content

Commit ed4d7e7

Browse files
anedaphobson
authored andcommitted
correction for doc string and PEP8
1 parent accd403 commit ed4d7e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/statistics/boxplot_color_demo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Box plots with custom fill colors
1+
"""Box plots with custom fill colors."""
22

33
import matplotlib.pyplot as plt
44
import numpy as np
@@ -29,12 +29,12 @@
2929
# adding horizontal grid lines
3030
for ax in axes:
3131
ax.yaxis.grid(True)
32-
ax.set_xticks([y+1 for y in range(len(all_data))], )
32+
ax.set_xticks([y + 1 for y in range(len(all_data))], )
3333
ax.set_xlabel('xlabel')
3434
ax.set_ylabel('ylabel')
3535

3636
# add x-tick labels
37-
plt.setp(axes, xticks=[y+1 for y in range(len(all_data))],
37+
plt.setp(axes, xticks=[y + 1 for y in range(len(all_data))],
3838
xticklabels=['x1', 'x2', 'x3', 'x4'])
3939

4040
plt.show()

0 commit comments

Comments
 (0)