A matplotlib example.
More...
|
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) |
|
A matplotlib example.
- Author
- Paulo Roma
- Since
- 10/08/2009
◆ autolabel()
def _04a_barchart_demo.autolabel |
( |
|
rects | ) |
|
◆ 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) |
int _04a_barchart_demo.N = 5 |
◆ rects1
◆ rects2
◆ 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) |