exportGraph <graph> <file-name> [-labels | -gnuplot]
This command writes the data in a graph to a file for analysis or graphing by an external program. By default, all of the visible traces are exported, with one tab-separated column for each trace. If the -labels option is given, the trace's labels will be written as column headers.
If the -gnuplot option is used, the data will be exported in a format useable by the gnuplot program. This lists the traces in sequence with two blank spaces between them.
You can read more about graphs and traces in the Graphs section of the main manual.
To export the data in graph 2 to the file foo.dat with trace labels:
lens> exportGraph 2 foo.dat -l