5.20 replot

replot [<plot number>]

In single plot mode, the replot command causes the most recent plot command to be re-run. This can be useful to replot a datafile which has changed in the meantime, but also to change some aspect of a plot within PyXPlot itself. Usages of the set command between the original plot command and the calling of the replot command are applied to the new plot. For example:

plot sin(x)
set textcolour red
replot

In multiplot mode, the replot command acts by default upon the last plot item which was added to the multiplot page, and causes that to be replotted. It is possible to change this behaviour by first calling the edit command, in which case any given plot within a multiplot can be modified and replotted.

Specifying a function or datafile after the replot command causes that function or data file to be added to the plot. The syntax here is the same as for the plot command. For example:

replot sin(x) axes x2y1 with linespoints

will add a plot of the function $\sin (x)$ to the current plot.