Last Update: 7/5/2017
Once you have edited your graph just the way you want, you should save it as a Graph Template for future use. You can plot your data via the Plot:Template menu option or through script using the worksheet command.
Depending on if Mark as Cloneable Tempalte is checked or not when saving template, the LabTalk syntax to plot with template is different:
worksheet -p n templatename
The value of n refers to a particular plot type which should match the plot type your template was derived from. All of the possible values for the plot option can be found in the Plot Type IDs.
For example, highlight data and then run
worksheet -p 200 MyTemplate;
you would be plotting the current selection to your template which was based on a line plot type (200).
worksheet -pa ? templatename
For cloneable template, no need to highlight data first. Just activate the worksheet and run
worksheet -pa ? MyMulti_Panel.otp
The cloneable template knows which data to plot and will plot the data in worksheet.
Keywords:Labtalk, Graph Template