Advertisement
Guest User

Untitled

a guest
Oct 16th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import Gnuplot
  4.  
  5. gp = Gnuplot.Gnuplot()
  6.  
  7. years = range(2003, 2012)
  8. umsatz = [ 631, 638, 644, 636, 624, 601, 662, 666, 678 ]
  9. zuwendung = [ 416, 413, 412, 307, 308, 272, 283, 281, 289 ]
  10. ergebnis = [ -221, -101, 235, -23, -59, -246, -66, -78, -71 ]
  11.  
  12. gp.plot(Gnuplot.Data(years, umsatz, with_='linespoints'))
  13. gp.replot(Gnuplot.Data(years, zuwendung, with_='linespoints'))
  14. gp.hardcopy(filename='input.png', terminal='png')
  15. gp.plot(Gnuplot.Data(years, ergebnis, with_='linespoints'))
  16. gp.hardcopy(filename='ergebnis.png', terminal='png')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement