I have a directory inside which there are 10 sub-directories called run1, run2, ...,run10. A programme, say a.f95 is run inside each of these 10 sub-directories. There is some random number inside each version and we are doing 10 runs of the code to compare some results. By running a.f95 10 times inside each of the run1, run2, ... folders, I get 30 data files inside each subdirectory. I need to plot these 30x10 data files and compare the plots to find some pattern. So, it is not possible for me to do this by hand.
We know that the resolution of plots in the interactive qt terminal is much better than that of saved pdf from pdfcairo. I cannot save each qt plot by clicking on the 'save' button in each qt window. I need vector plots from the data, of the sort given below. The top one has been saved as png from qt output window. The bottom one has been obtained by using pngcairo.
My question is,
- How can I save in high resolution, i.e. qt like, plots from the command line in vector graphics format (PDF)? I also need good resolution PNG images for creating animation of evolution.
- How do I save 30 gnuplot plots inside each run* subdirectory from the terminal, using, preferably, a bash script?
Any suggestion would be highly appreciated. Thank you.
I have generated the png output using
set term pngcairo
set size square
p 'data_fl.400.dat' u 3:4:5:6 w vec
Edit 1:In each subdirectory run* (eg. run1, run2, ...) the data files are named data_fl.0.dat, data_fl.50.dat, data_fl.100.dat, data_fl.150.dat, ..., data_fl.1500.dat i.e. the data has been written at intervals of 50 time steps.
Edit 2: I have plotted using pdfcairo also, though I couldn't share the output here as an image. The difference between pdf obtained from qt window and that from pdfcairo is that in the latter the arrows are not as sharp (they appear thicker) as in qt.