Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import Gnuplot
- gp = Gnuplot.Gnuplot()
- years = range(2003, 2012)
- umsatz = [ 631, 638, 644, 636, 624, 601, 662, 666, 678 ]
- zuwendung = [ 416, 413, 412, 307, 308, 272, 283, 281, 289 ]
- ergebnis = [ -221, -101, 235, -23, -59, -246, -66, -78, -71 ]
- gp.plot(Gnuplot.Data(years, umsatz, with_='linespoints'))
- gp.replot(Gnuplot.Data(years, zuwendung, with_='linespoints'))
- gp.hardcopy(filename='input.png', terminal='png')
- gp.plot(Gnuplot.Data(years, ergebnis, with_='linespoints'))
- gp.hardcopy(filename='ergebnis.png', terminal='png')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement