Python_2  1.0
Functions | Variables
_04a_barchart_demo Namespace Reference

A matplotlib example. More...

Functions

def autolabel (rects)
 

Variables

int N = 5
 
tuple menMeans = (20, 35, 30, 35, 27)
 
tuple menStd = (2, 3, 4, 1, 2)
 
 ind = np.arange(N)
 
float width = 0.35
 
 rects1 = plt.bar(ind, menMeans, width, color='r', yerr=menStd)
 
tuple womenMeans = (25, 32, 34, 20, 25)
 
tuple womenStd = (3, 5, 2, 3, 3)
 
 rects2 = plt.bar(ind + width, womenMeans, width, color='y', yerr=womenStd)
 

Detailed Description

A matplotlib example.

Author
Paulo Roma
Since
10/08/2009

Function Documentation

◆ autolabel()

def _04a_barchart_demo.autolabel (   rects)

Variable Documentation

◆ ind

_04a_barchart_demo.ind = np.arange(N)

◆ menMeans

tuple _04a_barchart_demo.menMeans = (20, 35, 30, 35, 27)

◆ menStd

tuple _04a_barchart_demo.menStd = (2, 3, 4, 1, 2)

◆ N

int _04a_barchart_demo.N = 5

◆ rects1

_04a_barchart_demo.rects1 = plt.bar(ind, menMeans, width, color='r', yerr=menStd)

◆ rects2

_04a_barchart_demo.rects2 = plt.bar(ind + width, womenMeans, width, color='y', yerr=womenStd)

◆ width

float _04a_barchart_demo.width = 0.35

◆ womenMeans

tuple _04a_barchart_demo.womenMeans = (25, 32, 34, 20, 25)

◆ womenStd

tuple _04a_barchart_demo.womenStd = (3, 5, 2, 3, 3)