%load_ext watermark %watermark -a 'Sebastian Raschka' -d -v -p matplotlib,numpy import numpy as np ary = np.array([[ 0.76223776, 0.71328671, 0.87412587, 0.77408175, 0.79020979, 0.67132867, 0.70629371], [ 0.69230769, 0.29772375, 0.79020979, 0.55789817, 0.51748252, 0.69230769, 0.58741259], [ 0.32167832, 0.2253577 , 0.36363636, 0.55944056, -0.3006993 , 0.07692308, 0.37062937], [ 0.57142857, 0, 0.57142857, 0.81084372, 0.85714286, 0.53571429, 0.42857143], [ 0.38461538, 0.35164835, 0.7032967 , 0.64835165, 0.52747253, 0.52747253, 0.54395604], [ 0.42892157, 0.58840274, 0.83823529, 0.81054583, 0.88480392, 0.56127451, 0.79901961], [ 0.78571429, 0.28571429, 0.57142857, 0.32142857, 0.53571429, 0.67857143, 0.71428571], [ 0.51648352, 0.86813187, 0.85714286, 0.81818492, 0.73626374, 0.5989011 , 0.48901099], [ 0.59803922, -0.01470588, 0.56617647, 0.91911765, 0.72303922, 0.3995098 , 0.37254902], [ 0.69090909, 0.22779102, 0.43636364, 0.44545455, -0.27272727, 0.13636364, 0.02727273], [ 0.40970072, 0.55343322, 0.51702786, 0.8121775 , 0.8369453 , 0.78534572, 0.72342621]]) %matplotlib inline import matplotlib.pyplot as plt def boxplot1(data): fig = plt.figure(figsize=(8,6)) ax = plt.subplot(111) bplot = plt.boxplot(data, notch=True, # notch shape vert=True, # vertical box aligmnent ) plt.show() boxplot1(ary) def boxplot2(data): fig = plt.figure(figsize=(8,6)) ax = plt.subplot(111) bplot = plt.boxplot(data, #notch=True, # notch shape vert=True, # vertical box aligmnent ) plt.show() boxplot2(ary) def boxplot3(data): fig = plt.figure(figsize=(8,6)) ax = plt.subplot(111) bplot = plt.boxplot(data, notch=True, # notch shape vert=True, # vertical box aligmnent bootstrap=5000 ) plt.show() boxplot3(ary)