Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Regne ut kummulative tall til graf
- Kum1 = np.cumsum(Spartliste)
- Kum2 = np.cumsum(Kum1)
- xliste = [2020, 2025, 2030, 2035, 2040, 2045, 2050]
- #Graf over CO2-utslipp
- xlist = xliste
- MaxCO2list = [0, CO2prAr*5, CO2prAr*10, CO2prAr*15, CO2prAr*20, CO2prAr*25, CO2prAr*30]
- fig = plt.figure()
- ax1 = fig.add_subplot(111)
- ax1.grid(True)
- plt.title("CO2-utslipp")
- plt.xlabel("Ă…rstall")
- plt.ylabel("Totalt utslipp siden 2020 i gigatonn")
- ax1.plot(xlist,MaxCO2list, label="Forventet graf")
- ax1.plot(xlist,MaxCO2list - Kum2, label="Graf etter tiltak")
- plt.legend()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment