Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

pylab_examples::boxplot_demo2 Namespace Reference


Detailed Description

Thanks Josh Hemann for the example


Variables

float alpha = 0.5
tuple ax1 = fig.add_subplot(111)
list backgroundcolor = boxColors[0]
tuple bootstrapIndices = np.random.random_integers(0, N-1, N)
int bottom = 5
list box = bp['boxes']
list boxColors = ['darkkhaki','royalblue']
tuple boxCoords = zip(boxX,boxY)
tuple boxPolygon = Polygon(boxCoords, facecolor=boxColors[k])
list boxX = []
list boxY = []
tuple bp = plt.boxplot(data, notch=0, sym='+', vert=1, whis=1.5)
string color = 'w'
list data
tuple expo = np.random.exponential(1, N)
list expoBoot = expo[bootstrapIndices]
tuple fig = plt.figure(figsize=(10,6))
tuple gumb = np.random.gumbel(6, 4, N)
list gumbBoot = gumb[bootstrapIndices]
string horizontalalignment = 'center'
int k = 2
tuple logn = np.random.lognormal(1,1, N)
list lognBoot = logn[bootstrapIndices]
list med = bp['medians']
tuple medians = range(numBoxes)
list medianX = []
list medianY = []
int N = 500
tuple norm = np.random.normal(1,1, N)
list normBoot = norm[bootstrapIndices]
int numBoxes = 2
int numDists = 5
tuple pos = np.arange(numBoxes)
list randomDists
string size = 'x-small'
int top = 40
tuple tria = np.random.triangular(2, 9, 11, N)
list triaBoot = tria[bootstrapIndices]
list upperLabels = [str(np.round(s, 2)) for s in medians]
string weight = 'roman'
list weights = ['bold', 'semibold']
tuple xtickNames = plt.setp(ax1, xticklabels=np.repeat(randomDists, 2))


Generated by  Doxygen 1.6.0   Back to index