8000 boxplot_demo2 python3 · matplotlib/matplotlib@fc226b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc226b6

Browse files
committed
boxplot_demo2 python3
1 parent 6dbfe7a commit fc226b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/pylab_examples/boxplot_demo2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
# Now fill the boxes with desired colors
5858
boxColors = ['darkkhaki', 'royalblue']
5959
numBoxes = numDists*2
60-
medians = range(numBoxes)
60+
medians = list(range(numBoxes))
6161
for i in range(numBoxes):
6262
box = bp['boxes'][i]
6363
boxX = []
6464
boxY = []
6565
for j in range(5):
6666
boxX.append(box.get_xdata()[j])
6767
boxY.append(box.get_ydata()[j])
68-
boxCoords = zip(boxX, boxY)
68+
boxCoords = list(zip(boxX, boxY))
6969
# Alternate between Dark Khaki and Royal Blue
7070
k = i % 2
7171
boxPolygon = Polygon(boxCoords, facecolor=boxColors[k])

0 commit comments

Comments
 (0)
0