streaming plots no longer go away once the input pipe goes away

This commit is contained in:
Dima Kogan 2011-02-26 12:46:34 -08:00
parent cf57de689f
commit 064f522097

View File

@ -513,17 +513,10 @@ sub mainThread
} }
} }
# finished reading in all of the data # finished reading in all. Plot what we have
if($options{stream})
{
print PIPE "exit;\n";
close PIPE;
}
else
{
plotStoredData(); plotStoredData();
if( $options{hardcopy}) if ( $options{hardcopy})
{ {
print PIPE "set output\n"; print PIPE "set output\n";
# sleep until the plot file exists, and it is closed. Sometimes the output is # sleep until the plot file exists, and it is closed. Sometimes the output is
@ -539,7 +532,6 @@ sub mainThread
# gnuplot exits, but the persistent window sticks around, you can no # gnuplot exits, but the persistent window sticks around, you can no
# longer interactively zoom the plot. So we still sleep # longer interactively zoom the plot. So we still sleep
sleep(100000); sleep(100000);
}
} }
sub pruneOldData sub pruneOldData