- import matplotlib.pyplot as plt
- # Данные
- countries = ["Казахстан", "Азербайджан", "Российская Федерация", "Кыргызстан", "Турция",
- "Румыния", "Узбекистан", "Армения", "Таджикистан", "Соед.Королевство",
- "Беларусь", "Австрия", "Франция", "Германия", "Бельгия"]
- cases = [15111, 13728, 12885, 7463, 5003, 3497, 1192, 556, 294, 272, 206, 188, 117, 80, 68]
- # Построение столбчатой диаграммы
- plt.figure(figsize=(10, 6))
- plt.barh(countries, cases, color='skyblue')
- plt.xlabel('Количество случаев коронавируса')
- plt.title('Динамика числа случаев коронавируса в разных странах')
- plt.gca().invert_yaxis() # чтобы страны шли сверху вниз
- plt.show()
[text] в
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: