From: Richard Owlett on
My problem is the lines are not getting TO the gnuplot window.
From: Uwe Klein on
Richard Owlett wrote:
> My problem is the lines are not getting TO the gnuplot window.

are you running into the problem that gnuplot does not have
stdout/stderr but would like to have it ? ( I am a windows noob )
then gnuplot would be blocked in sending output.
sorry, busy, no input accepted ;-/

what happens when you open the pipe "rw"
and setup a [fileevent readable] for that handle?

like:

set gpfd [ open "|gnupl�t.exe" rw ]

fconfigure $gpfd -buffering line
fileevent $gpfd readable "dumper $gpfd"

proc dumper {fd} {
if {[eof $fd]} {
fileevent $fd readable {}
# tell about eof??
} else {
set line [ gets $gpfd ]
# blurt the output?
}
}

puts $gpfd "plot 'mydata.dat' using 1:2"


uwe