|
|
|
@ -480,7 +480,11 @@ Text(0.5, 0, 'время')
|
|
|
|
pylab.ylabel('сигнал')
|
|
|
|
pylab.ylabel('сигнал')
|
|
|
|
Text(0, 0.5, 'сигнал')
|
|
|
|
Text(0, 0.5, 'сигнал')
|
|
|
|
pylab.show()
|
|
|
|
pylab.show()
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```py
|
|
|
|
X1=[12,6,8,10,7]
|
|
|
|
X1=[12,6,8,10,7]
|
|
|
|
X2=[5,7,9,11,13]
|
|
|
|
X2=[5,7,9,11,13]
|
|
|
|
pylab.plot(X1)
|
|
|
|
pylab.plot(X1)
|
|
|
|
@ -488,26 +492,40 @@ pylab.plot(X1)
|
|
|
|
pylab.plot(X2)
|
|
|
|
pylab.plot(X2)
|
|
|
|
[<matplotlib.lines.Line2D object at 0x000002487D2634D0>]
|
|
|
|
[<matplotlib.lines.Line2D object at 0x000002487D2634D0>]
|
|
|
|
pylab.show()
|
|
|
|
pylab.show()
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```py
|
|
|
|
region=['Центр','Урал','Сибирь','Юг']
|
|
|
|
region=['Центр','Урал','Сибирь','Юг']
|
|
|
|
naselen=[65,12,23,17]
|
|
|
|
naselen=[65,12,23,17]
|
|
|
|
pylab.pie(naselen,labels=region)
|
|
|
|
pylab.pie(naselen,labels=region)
|
|
|
|
([<matplotlib.patches.Wedge object at 0x000002487CE1DFD0>, <matplotlib.patches.Wedge object at 0x000002487D305090>, <matplotlib.patches.Wedge object at 0x000002487D305450>, <matplotlib.patches.Wedge object at 0x000002487D3056D0>], [Text(-0.191013134139045, 1.0832885038559115, 'Центр'), Text(-0.861328292412156, -0.6841882582231001, 'Урал'), Text(0.04429273995539947, -1.0991078896938387, 'Сибирь'), Text(0.9873750693480946, -0.48486129194837324, 'Юг')])
|
|
|
|
([<matplotlib.patches.Wedge object at 0x000002487CE1DFD0>, <matplotlib.patches.Wedge object at 0x000002487D305090>, <matplotlib.patches.Wedge object at 0x000002487D305450>, <matplotlib.patches.Wedge object at 0x000002487D3056D0>], [Text(-0.191013134139045, 1.0832885038559115, 'Центр'), Text(-0.861328292412156, -0.6841882582231001, 'Урал'), Text(0.04429273995539947, -1.0991078896938387, 'Сибирь'), Text(0.9873750693480946, -0.48486129194837324, 'Юг')])
|
|
|
|
pylab.show()
|
|
|
|
pylab.show()
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```py
|
|
|
|
data = [1, 2, 2, 3, 3, 3, 4, 4, 5]
|
|
|
|
data = [1, 2, 2, 3, 3, 3, 4, 4, 5]
|
|
|
|
pylab.hist(data,5)
|
|
|
|
pylab.hist(data,5)
|
|
|
|
(array([1., 2., 3., 2., 1.]), array([1. , 1.8, 2.6, 3.4, 4.2, 5. ]), <BarContainer object of 5 artists>)
|
|
|
|
(array([1., 2., 3., 2., 1.]), array([1. , 1.8, 2.6, 3.4, 4.2, 5. ]), <BarContainer object of 5 artists>)
|
|
|
|
pylab.show()
|
|
|
|
pylab.show()
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```py
|
|
|
|
c = ['A', 'B', 'C']
|
|
|
|
c = ['A', 'B', 'C']
|
|
|
|
v = [10, 25, 15]
|
|
|
|
v = [10, 25, 15]
|
|
|
|
pylab.bar(c, v)
|
|
|
|
pylab.bar(c, v)
|
|
|
|
<BarContainer object of 3 artists>
|
|
|
|
<BarContainer object of 3 artists>
|
|
|
|
pylab.show()
|
|
|
|
pylab.show()
|
|
|
|

|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 8. Модуль statistics.
|
|
|
|
## 8. Модуль statistics.
|
|
|
|
|
|
|
|
|
|
|
|
```py
|
|
|
|
```py
|
|
|
|
|