Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. def oppgave3b():
  2. """ Tegner et histogram over inntektene til Microsoft """
  3.  
  4. år = [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
  5. 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019]
  6.  
  7. inntekt = [28.37, 32.19, 36.84, 39.79, 44.28, 51.12, 60.42, 58.44, 62.48,
  8. 69.94, 73.12, 77.85, 86.83, 93.58, 85.32, 89.95, 110.36, 125.84]
  9.  
  10. plt.bar(år,inntekt)
  11. plt.ylabel('Inntekt i mrd dollar')
  12. plt.show
  13.  
  14. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement