OriginLab Corporation - Data Analysis and Graphing Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis                     
 
Skip Navigation Links
All BooksExpand All Books
Quick HelpExpand Quick Help
GraphingExpand Graphing

1.121 FAQ-677 How do I plot using my own graph template with LabTalk script?

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:

  • Template isn't Marked as Cloneable Template The general syntax for plotting with a Template is:
    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).

  • Template is Marked as Cloneable Template The general syntax for plotting with a Template is:
    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

 

© OriginLab Corporation. All rights reserved.