ich habe folgenden Code in Eclipse ausgeführt und die erzeugte Datei bleibt ohne Inhalt -
lasse ich aber das Ganze mit Idle laufen bekomme ich eine tadellose Datei.
In den Projekteigenschaften ist als Interpreter "C:\Python26\python.exe" eingetragen.
Der Idle Pfad wurde bei der PythonXY-Installation unter "C:\Python26\Lib\idlelib\idle.bat" angelegt und die Datei hat den angefügten Inhalt.
WO IST DER UNTERSCHIED?
bzw was muss ich machen, damit ich in eclipse auch eine korrekte datei bekomme?
@echo off
rem Working IDLE bat for Windows - uses start instead of absolute pathname
start idle.pyw %1 %2 %3 %4 %5 %6 %7 %8 %9
Code: Alles auswählen
import Gnuplot
from numpy import *
x = linspace(0,10,31)
y = x**2
g = Gnuplot.Gnuplot()
d = Gnuplot.Data(x, y)
g.plot(d)
g.hardcopy(filename = 'H:/data.eps', terminal = 'postscript', mode = 'eps', color = 1)
print "Done"