I want to plot in the same graph a series of data contained in different directories with gnuplot.
I have a collection of folders called Ntimestep=X
(where X can be for example 100, 200, 400 and so on). Inside each of this folder I have a file occ.dat
which contains the data I want to plot, let's say 3 columns (first x points, second and third y points).
I want my gnuplot script to automatically detect all the folders by the name Ntimestep=X
and add the data contained in the file Ntimestep=X/occ.dat
in my plot.
I want also the number X to appear in the legend of the plot.
Example directory structure:
- Ntimestep=100
~ occ.dat
~ <other files>
- Ntimestep=200
~ occ.dat
~ <other files>