What's the problem?

Report a typo

Your friend composed the following code that is supposed to change the color of the box. However, it results in an error. How can we solve this issue?

import matplotlib.pyplot as plt
import numpy as np

boxprops = {'facecolor':'lightblue', 'edgecolor': 'black', 'linewidth': 2.0}

np.random.seed(1)
data = np.random.normal(40, 60, size=200)

plt.boxplot(data, boxprops=boxprops)

plt.show()
Select one option from the list
___

Create a free account to access the full topic