PokhilAA 2 недель назад
Родитель c079e8326c
Сommit 61a8d7365f

@ -279,7 +279,7 @@ Text(0, 0.5, 'сигнал')
pylab.show()
```
![Graf1](Ris1.PNG)
![Graf1](C:\Users\Настя\Desktop\python-labs\TEMA4\Ris1.PNG)
```py
X1=[12,6,8,10,7]
@ -290,7 +290,7 @@ pylab.plot(X2)
[<matplotlib.lines.Line2D object at 0x000002010AED0690>]
pylab.show()
```
![Graf2](Ris2.PNG)
![Graf2](C:\Users\Настя\Desktop\python-labs\TEMA4\Ris2.PNG)
```py
region=['Центр','Урал','Сибирь','Юг']
naselen=[65,12,23,17]
@ -298,7 +298,27 @@ pylab.pie(naselen,labels=region)
([<matplotlib.patches.Wedge object at 0x0000020109A1A270>, <matplotlib.patches.Wedge object at 0x000002010D44E210>, <matplotlib.patches.Wedge object at 0x000002010D44E5D0>, <matplotlib.patches.Wedge object at 0x000002010D44E850>], [Text(-0.191013134139045, 1.0832885038559115, 'Центр'), Text(-0.861328292412156, -0.6841882582231001, 'Урал'), Text(0.04429273995539947, -1.0991078896938387, 'Сибирь'), Text(0.9873750693480946, -0.48486129194837324, 'Юг')])
pylab.show()
```
![Graf3](Ris3.PNG)
![Graf3](C:\Users\Настя\Desktop\python-labs\TEMA4\Ris3.PNG)
```py
rost = [170, 165, 180, 175, 160, 185, 172, 168, 178, 162]
pylab.hist(rost)
(array([2., 0., 1., 1., 2., 0., 1., 1., 1., 1.]), array([160. , 162.5, 165. , 167.5, 170. , 172.5, 175. , 177.5, 180. ,
182.5, 185. ]), <BarContainer object of 10 artists>)
pylab.show()
```
![Graf4](C:\Users\Настя\Desktop\python-labs\TEMA4\Ris4.PNG)
```py
predmety = ['Математика', 'Физика', 'Химия']
otm = [5, 4, 3]
pylab.bar(predmety, otm)
<BarContainer object of 3 artists>
pylab.title('Оценки по предметам')
Text(0.5, 1.0, 'Оценки по предметам')
pylab.show()
```
![Graf5](C:\Users\Настя\Desktop\python-labs\TEMA4\Ris5.PNG)
### 8. Cтатистический модуль statistics.
```py

Загрузка…
Отмена
Сохранить