9951 explained code solutions for 126 technologies


python-matplotlibHow to plot multiple boxplots


import matplotlib.pyplot as plt

plt.boxplot([[2,3,6,2,4,5,1,2], [4,5,7,17,3]])

plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.boxplot(

plots boxplot (features of a given set of values: minimum, first quartile, median, third quartile and maximum)

[[2,3,6,2,4,5,1,2], [4,5,7,17,3]]

multidimensional array to draw boxplots from (2 boxplots)

.show()

render chart in a separate window