I want to display labels on a graph, the way the built-in functions display the "fit" values. My program generates some values and I want to be able to display them next to the graph.
Use the "label" command. Say your program generates the peak parameters "offset" and "fwhm", both of which are in units of Hz. To make your label you need the convert offset and fwhm to strings using $(offset) and $(fwhm) like this...
%S="peak position: $(offset) Hz peak width: $(fwhm) Hz"; // this defines a 2-line string variable label -s -n MyLabel %S; // create a label called MyLabel and fill it with the string
If offset=2.5 and fwhm=0.125 your label will look like this...
peak position: 2.5 Hz peak width: 0.125 Hz
There are also a number of "label" command arguments for positioning the label. See LabTalk help for details.