4.9 Plotting Many Files at Once

PyXPlot allows the wildcards * and ? to be used in the filenames of data files supplied to the plot command. For example, the following would plot all data files in the current directory with a .dat suffix, using the same plot options:

plot '*.dat' with linewidth 2

In the legend, full filenames are displayed, allowing the data files to be distinguished. As in Gnuplot, a blank filename passed to the plot command causes the last used data file to be used again, for example:

plot 'data.dat' using 1:2, '' using 2:3

or even:

plot '*.dat' using 1:2, '' using 2:3

The * and ? wildcards can be used in a similar fashion in the load command.