Skip to main content
Print

The Commands

The Toolbar

Across the top of the toolbar are command shortcuts.

Command Lists

The menu bar contains a full list of the commands from the Command menu. The commands are organized into two lists on the toolbar: Draw and Label.

Exercise:

  1. Click the Draw button to view a list of drawing commands
  2. Click the Label button to view a list of commands for annotating graphs
  3. Find a command you’re interested in and click the associated ‘?’ to view the help page

Shortcuts

Clicking icons to the right of Draw and Label adds commands directly to your graph – the same as using the ‘Add’ button in the lists.

This section of the toolbar shows a subset of commands. You can customize it to include the ones you frequently use.

See How to Customize the Toolbar.

Adding Commands

Adding a command creates an object below the layout settings. Commands include interactive menus, sliders, and entry boxes for customization.

Example 1: Plot & Label

Create a line plot with a label pointing at one data point.

X Value Y Value
101.94
201.85
302.49
408.38
5011.79
6012.44
7012.17
8010.52
908.63
1008.35
1108.44
1207.32

Add the Data

  1. First, select and copy the above table
  2. Open a DataGraph file
  3. Go to Edit > Paste (⌘V)

Add the Line Plot

  1. Click the Plot command icon Plot command icon
  2. On the command object, select the X and Y input
  3. Format the line (e.g., color, points, line width)

Add the Label

  1. Click the Label command icon
  2. On the graph, click and drag to position the Label
  3. Double-click the label text to edit

When you are done, the command objects should look something like this.

Notice how the icon on the Plot command changes to reflect the drawing options (e.g., points, color). Many commands have similar custom icons, making tracking the associated elements in the graphs easier.

Example 2: Bar & Line Graph

This example shows how to add a bar and a plot command to the same graph. You can also add a legend.

X Value Y Value
0.00.121
0.51.267
1.02.472
1.53.825
2.05.060
2.56.488
3.06.697
3.58.182
4.09.410
4.510.351
5.010.731
5.511.716
6.013.116
6.513.531
7.015.317

Add the Data

  1. First, select and copy the above table
  2. Open a DataGraph file
  3. Go to Edit > Paste (⌘V)

Add the Bar command

  1. Shift-click the headers to select the data
  2. Click the Bar command icon Bar command icon

Add the Plot command

  1. Repeat step 4
  2. Click the Plot command icon Plot command icon

Add the Legend

  1. Click the Legend command icon
  2. Change the Anchor to ‘Upper Left’
  3. Click the drag the Legend to change the offset
  4. Click and drag the Legend edge to change the width
  5. Double-click the text on the legend to edit

Pen and Point

DataGraph uses variables to propagate the line width and the point size throughout the commands in your graph. This makes it easy to change the sizes globally throughout your graph, in the Style settings.

You’ll see this when you add commands where the words pen and point are used for setting line width and point sizes. This means the value for that setting in the command will be equal to whatever the value is in the Style settings.

If you enter a different value or use a slider to change the line width or point size that will break the connection with the style settings.

Some things to try:

  • Use the sliders to change the line width or point size on the commands
  • Type in the variable names to go back to using the pen or point variable
  • Create your own variables to use for the settings
  • Enter a multiple of the variables, 2pen

On This Page