|
From: ivana r. <iva...@mf...> - 2017-07-27 08:31:15
|
Hi Theo,
what version of gnuplot you are running?
With V5+ and windows 7Pro, I get error message "File not found",
GPVAL_ERRNO is set and gnuplot doesn't exit.
(Then you can decide if plot the graph according to value of
GPVAL_ERRNO or words(FileList))
(Note that since V5.2 gnuplot recognize continue command)
(The empty plot you can get, e.g.: #plot [0:1][0:1] 1/0 not)
Sincerely
Iva
On 27/07/2017, theozh <th...@gm...> wrote:
> Hi,
> I would like to plot many files (under Windows) in a multiplot
> environment using a loop.
> The filenames without extensions are e.g.,
> Data1a, Data1b, Data2, Data3, Data3a, Data3b, Data5a, ...
>
> set multiplot layout 3,3
> do for [i = 1:9] {
> FileList = system("dir /B /S Data".i."*.dat")
> plot for [FileName in FileList] FileName u 1:2 w l
> }
> unset multiplot
>
> I want all Data1 in one plot, all Data2 in the next plot, etc.
> It varies how many plots (a,b,c,...) of each.
> However, it could also happen that, e.g. there is no "Data4" file.
>
> In case there is no matching file in the directory gnuplot exits with a
> message "popen failed" and FileList is not changed.
> How to ignore "pope failed" and instead just create an empty plot?
>
> Thank you for any hints.
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|