Template Graphs

Template graphs are used to store graphing preferences in Grapher. When a template file is saved it does not contain a reference to any data file. This means that once the template graph is created, you can use the template to create a new graph with any compatible data set.

 

Creating a Template

To create a new template:

  1. In the plot window, design the graph exactly the way you want the final graph to appear. Create any plot type, set the axes properties, add titles, format legends, import images, add borders, or customize the graph in any way you prefer.

  2. Click the File | Save As command.

  3. In the Save As dialog, specify the directory and a File name.

  4. Set the Save as type to Plot Template (*.grt).

  5. Click the Save button and the file is saved as a complete template file.

 

Creating a New Plot from a Template

To create a new plot from a template:

  1. Click the File | New | Plot from Template command.

  2. In the Open dialog, select a .GRT template file, and click the Open button.

  3. When prompted, select the data file to use with the template.

  4. Check the Use this worksheet for remaining items if all the plots in a template use the same worksheet.

  5. Check the Set columns if you want to change the column specifications for individual plots in the graph.

  6. Click the Open button and the new plot is created. The plot uses all the settings from the template and the specified data file.

 

Alternatively, you can open a template using the steps listed below in the Editing a Templatesection.

 

Editing a Template

To edit a template:

  1. Click the File | Open command.

  2. In the Open dialog, select the .GRT template file and click the Open button.

  3. When prompted, select the data file(s) to use with the template and click the Open button.

  4. Check theUse this worksheet for remaining itemsif all the plots in a template use the same worksheet.

  5. Check the Set columns if you want to change the column specifications for individual plots in the graph.

  6. Click the Openbutton and the template is loaded with the specified data set.

  7. After the template file appears, make any desired changes.

  8. Choose File | Save to save the updated template file.

 

Tips About Templates

  • There are few restrictions on data types that can be used in a template. The axes limits change to accommodate the new data set if the Auto box is checked for axis minimum and maximum. If the data set cannot be used with the template, i.e., log axis with negative data, an error message appears.

  • If an empty plot appears after the data set is selected, check the plot's plot properties on the Plot page of the Property Manager. Make sure the selected data columns contain numeric data. Also, check the axes limits to see if they have been set beyond the data range.

  • To save the file with a reference to a specific worksheet, click the File | Save As command and set the Save as type to Grapher File (*.grf).

  • To save the file with the worksheet data embedded in the file, click the File | Save As command and set the Save as type to Grapher Project (*.gpj).

  • Templates can use multiple data files or multiple data columns. To use one worksheet for all plots, check the Use this worksheet for remaining items box when selecting data files. When using the Open method in automation, the template only uses one worksheet or grid file.

  • Check the Set columns box to display the Select Columns dialog and select the data columns to use in the graph. If you have more than one plot in the template, make sure Use this worksheet for remaining items is not enabled so you can select the columns for each plot separately.

  • When opening a template, all references to worksheets, including linked text, will cause a prompt to select the data file. If all worksheet references are to the same worksheet, check the Use this worksheet for remaining items box.

 

Template Alternatives

  • Click the File | Options command to set default settings such as line, fill, symbol, and font properties.

  • Click the File | Defaults command to set default settings for basic objects, graphs, plots, maps, axes, and legends.

  • If a graph is saved as a Grapher File (*.grf) or Grapher Project (*.gpj), you can still use it as a "template." To do so, open the graph as normal using the File | Open command. Then, Select the plot and click the Plot tab in the Property Manager. Change the columns used to create the plot or click the Worksheet button to change the data used to create the plot.

 

 

See Also

Creating Graphs

Property Manager

File | Options

File | Defaults