Before we plot some data, make sure that you have a single selected graph on the Canvas. It's ok if you have more than one graph on the Canvas, just make sure that only one is selected.
Now we need to create a table of data to plot. The following table of data will work well for our purposes. Just copy the lines below to a new file:
0.1 0.1 0.2 0.4 0.3 0.9 0.4 1.2 0.5 0.9 0.6 0.4 0.7 0.3 0.8 0.25 0.9 0.1The basic data file format for Tkgraph is an ASCII table of data. Each row of the table is a single data point. Each column is a field for that data point, such as X-value, Y-value, X error, Y high error, etc. One of the table formats allows you to specify more than one Y value for each X value. The possible data formats are listed below. Each reflects the order that the columns must be arranged in to be read by Tkgraph:
Let's plot our table of data. Go to the File
menu in the main
Tkgraph display and select Load data from file
. This will open up
a file selection box. Navigate through the directories and files until you
find the 2-column data file that you created. When you've found it, click on
it and press the Ok
button. This will cause a second window to
open up. This window is asking you about the format of this data file. The
default format, X Y, is correct, so you don't need to do anything here but
press Ok
.
Now look at the graph that you had selected. You should see a plot of the data. You will also notice that Tkgraph has adjusted the limits on the X and Y axes so that the entire dataset is displayed in the graph.
![]() |
![]() |
![]() |
[Prev] | [Top] | [Next] |