ответвлено от main/python-labs
Изменил(а) на 'TEMA4/report.md'
Этот коммит содержится в:
@@ -480,7 +480,11 @@ Text(0.5, 0, 'время')
|
||||
pylab.ylabel('сигнал')
|
||||
Text(0, 0.5, 'сигнал')
|
||||
pylab.show()
|
||||
```
|
||||
|
||||

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

|
||||
|
||||
```py
|
||||
region=['Центр','Урал','Сибирь','Юг']
|
||||
naselen=[65,12,23,17]
|
||||
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, 'Юг')])
|
||||
pylab.show()
|
||||
```
|
||||
|
||||

|
||||
|
||||
```py
|
||||
data = [1, 2, 2, 3, 3, 3, 4, 4, 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>)
|
||||
pylab.show()
|
||||
```
|
||||
|
||||

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

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

|
||||
|
||||
|
||||
## 8. Модуль statistics.
|
||||
|
||||
```py
|
||||
|
||||
Ссылка в новой задаче
Block a user