DataGraph
Print

Graphic

The Graphic command allows you to add an image or other graph as a static image.

Some examples of what you can use this command for are:

  • Add a logo in a corner of a graph
  • Add an equation that is created in LaTeXiT or some other equation editor and pasted it in. DataGraph supports expressions but doesn’t cover as much as TeX does.
  • Stack graphs into a figure. Each graph can be done in a separate graph in DataGraph and remain dynamic, or just pasted.
  • Scale bitmaps. Applications like TextEdit don’t have a lot of control over the output size, and DataGraph can be used to scale a bitmap to an exact size.

The graphic can either be pasted into a graph window or can come from another graph. Once the graph is inside the command you can position and scale it.

Source

The Source menu provides two ways to specify a graphic. The ‘Imported’ option means that the image needs to be copied from a file or come from the clipboard. The ‘Graph’ option is for specifying a graph in the same DataGraph file.

Imported

If you have a file (e.g., jpg, png, … ) that you want to import, you can:

  • Click the Select… button,
  • Drag the file to the command list, OR
  • Copy & Paste a file directly into the command list.

This will create the Graphic command and the command icon is replaced by the image.

A Graphic command — Source is an Image

You can also copy the graphic back into the clipboard. This is useful since DataGraph retains any LinkBack information. For some applications, such as the equation editor, LaTeXiT, you can paste it back into the application and continue to edit.

Graph

When Source is ‘Graph’, you will see thumbnails of all the graphs in your file. Click on a graph to select it.

A Graphic command — Source is a Graph

You cannot select the current graph or any graph that directly or indirectly depends on this graph since that would cause an infinite recursion.

To create an empty background, turn off draw the x and y numbers (Axis settings) and switch the box style to ‘Only Axis’ (Style settings). Or create a New Graph using the For Composition option.

To combine multiple graphs, you can use multiple Graphic commands.

Command List — Multiple Graphic Commands
Combined Graphs

Where & Anchor

The Graph command positions the graphic relative to one of the corners of the current axis.

Set Where to ‘Coordinate’ to position the graph at a particular x,y location. This means that the graph is positioned at a particular coordinate in space, and if you crop the axes it might not be visible.

You can also position the graph in the title or along the axes. For example, if you want a graphical label instead of a text label. The ‘Figure’ option means that the placement is relative to the overall figure, and therefore not dependent on an axis.

The option you pick really should depend on what should happen as the data changes and you resize the graph. The second line will change depending on what is selected in the Where menu.

For example, for Where set to ‘Graph’, you can pick which corner the graphic should be anchored to and what the offset should be. When you pick the x title, you can specify the x coordinate and the offset in the y direction.

On This Page