File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2929 print (f'{ year } : { counts [year ]:>5} ' )
3030print (f'Yhteensä: { len (rows )} ' )
3131
32+ # Virtuaaliympäristöt, kts. https://realpython.com/python-virtual-environments-a-primer/
3233# Tee ennen tätä virtuaaliympäristö samaan hakemistoon
3334# missä projekti on: `python3 -m venv venv`.
3435# Aktivoi virtuaaliympäristö: `source venv/bin/activate`
3536# Asenna sitten Matplotlib: `pip install matplotlib`.
37+ # pip-ohjelman käyttö: kts. https://realpython.com/what-is-pip/
3638# Kun olet lopettanut projektin työstämisen,
3739# anna komento `deactivate`.
38-
40+
41+ # Kaavioiden tekeminen Matplotlib-kirjastolla,
42+ # kts. https://realpython.com/python-matplotlib-guide/
43+
3944import matplotlib .pyplot as plt
4045
4146values = [counts [k ] for k in sorted (list (counts .keys ()))]
You can’t perform that action at this time.
0 commit comments