Graph 2 files using gnuplot <p>I am trying to create a graph on gnuplot for 2 different files. When I run the script I get the graph just for the first file: In this case "graph1.dat". At this point I try with plot and replot but I have tried some solutions but they did not work.</p> <p>For example:</p> <p>plot "./plot/graf-1.dat" using 1:2 with linespoint title "graph1" , "./plot/graf-2.dat" using 1:2 with lines title "graph2".</p> <p>Both files are in the folder ./plot.</p> <p>The files have the information like the following:</p> <p>012016 14498 </p> <p>022016 7135 </p> <p>032016 10500 </p> <p>042016 16695 </p> <p>052016 16245 </p> <p>062016 13416 </p> <p>This is the script I used:</p> <pre><code> set xdata time set timefmt '%m' set xrange ["012016" : "062016" ] set format x '%m' set terminal png set title "graph1 and graph2 2016" set ylabel "Values" set output 'graf.png' plot "./plot/graf-1.dat" using 1:2 with linespoint title "graph1" replot "./plot/graf-2.dat" using 1:2 with lines title "graph2" </code></pre> <p>Any help is very appreciated.</p>