How To: Modify a Graph component and copying the graph or it's data
Modify a graph component
After you have dragged a graph component to the desired location in your simulation tree so that it can see the necessary output files
your next task is to modify the graph component to plot your desired data.
-
You can expand the nodes of the graph component by clicking the "+" symbol next to it. This will reveal its child components. You
should repeat this for each child until you have a fully expanded tree under the graph component.

Each different type of graph component is slightly different in what child components it has, but the general rule for configuring is to start
at the bottom most child component and work your way back up towards the graph component.
Starting at the bottom is usually an "ApsimFileReader" component. This just lists the .out files that it has found and lets you preview the
data. Use the browse button to view other .out files it has found.

The "Plot" component is where you specify which columns from the .out file you want to plot.
It also lets you specify what type of graph you would like to use (solid line, dashed line, bar etc.) and what you want to use to mark the individual points on
the graph.

To specify which column to use as the X axis, you click on the "X variables" square to make its background pink. Then you click on the column
heading of the column you wish to add. You will then see the column name appear in the "X variables" square. To delete it, just click on it
in the square and press the delete button on your keyboard. You add specify the Y axis columns just click on the "Y variable" square to highlight
it pink and once again click on the column heading. If you wish to plot multiple columns on the same graph just keep on clicking more column headings.
If you are plotting multiple columns and you want to plot one of the columns on the Y2 axis instead of on the Y axis. You can just click on
the name in the "Y variables" square and then right mouse click on it again. In the popup menu just click on "Right Hand Axis".
In the same way if you wish a column to be the cumulative total of that column you do the exact same thing as to plot it on the Y2 column
only instead you click on "Cumulative" in the popup menu.

-
You can specify what type of graph and type of point markings you want to use by using the "Type" and "Point type" drop down lists respectively.
Finally, to view the graph just click on graph component in the simulation tree.
-
To give the graph a different Title, simply rename the graph component (eg. from "XY" to "Shaun's Graph").
The name of the component is used as the Title of the graph.
Copying the graph or it's data
- Right mouse click on the graph and select either "Copy to clipboard" to copy the image, or "Copy data to clipboard" to copy the data that has been plotted.
They can then be pasted just like any other windows application.