-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebt.py
More file actions
48 lines (38 loc) · 816 Bytes
/
debt.py
File metadata and controls
48 lines (38 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import matplotlib.pyplot as plt
def debt():
names_of_data = (
"Date ",
"total",
"treasury",
"bonds",
"swaps",
"green lottery",
"national",
"savings",
"bills",
"other",
"foreign",
"debt",
" debt in swaps",
)
numbers_of_data = [
"2020M11",
1136528,
678311,
176738,
31250,
20000,
2889,
5,
0,
145241,
18773,
271309,
31250,
]
title = "Central government debt, balance, SEK million by item and month. "
plt.figure(figsize=(13, 13))
plt.bar(names_of_data[1:13], numbers_of_data[1:13])
plt.title(title + names_of_data[0] + numbers_of_data[0].rstrip())
plt.show()
debt()