replot [ item <id> ] ...
The replot command has the same syntax as the plot command and is used to add more datasets to an existing plot, or to change its axis ranges. For example, having plotted one data file using the command
plot 'datafile1.dat'
another can be plotted on the same axes using the command
replot 'datafile2.dat' using 1:3
or the ranges of the axes on the original plot can be changed using the command
replot [0:1][0:1]
The plot is also updated to reflect any changes to settings made using the set command. In multiplot mode, the replot command can likewise be used to modify the last plot added to the page. For example, the following would change the title of the latest plot to ‘foo’, and add a plot of the function g(x)