Tutorial by Examples

The default gnuplot command plot (also only p) plot dataset with columns, of the form of the data_set.dat file below. # Prototype of a gnuplot data set # data_set.dat # X - X^2 - 2*X - Random 0 0 0 5 1 1 2 15 1.4142 2 2.8284 1 2 ...
First method - Concatenation of strings The simplest method to plot multiple data files is to insert a for loop inside the plot command of gnuplot. Assuming you have N files named sequently, i.e. file_1.dat file_2.dat file_3.dat ... file_N.dat Executing the command plot for[i = 1:N] &quot...

Page 1 of 1