|
From: Tait <gnu...@t4...> - 2013-04-30 07:08:40
|
> How about
>
> expected_file = "filename"
> stat = system("wc ".expected_file)
> if (stat ne "") {
> plot expected_file
> }
>
> If you want to test for a file that exists but is too short to
> contain the expected data:
>
> stat = system("wc ".expected_file)
> if (stat ne "" && int(word(stat,1)) > min_size) {
> plot expected_file
> }
>
> Ethan
You don't happen to have any similarly clever tricks that would work on
Windows, do you? (Gnuplot on windows does not support capturing system(),
``, etc.)
I've seen requests before for an option to disable gnuplot warnings (not
errors, necessarily, as recovery could be tricky). The noise can be
excessive when running in batch mode to create a large number of plots,
where empty data files or single-value ranges (for example) are not
worrisome.
(Sorry if this comes through twice.)
|