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 6dbfe7a commit fc226b6Copy full SHA for fc226b6
examples/pylab_examples/boxplot_demo2.py
@@ -57,15 +57,15 @@
57
# Now fill the boxes with desired colors
58
boxColors = ['darkkhaki', 'royalblue']
59
numBoxes = numDists*2
60
-medians = range(numBoxes)
+medians = list(range(numBoxes))
61
for i in range(numBoxes):
62
box = bp['boxes'][i]
63
boxX = []
64
boxY = []
65
for j in range(5):
66
boxX.append(box.get_xdata()[j])
67
boxY.append(box.get_ydata()[j])
68
- boxCoords = zip(boxX, boxY)
+ boxCoords = list(zip(boxX, boxY))
69
# Alternate between Dark Khaki and Royal Blue
70
k = i % 2
71
boxPolygon = Polygon(boxCoords, facecolor=boxColors[k])
0 commit comments