save '<filename>'
The save command saves a list of all of the commands which have been executed in the current interactive PyXPlot session into a given file. The filename of the desired location for this file should be placed in quotes, for example:
save 'foo'
would save a command history into the file named foo.