In this chapter we will learn how to read, plot and print simple 1D data sets, e.g. xy-data. Chapter 3 explains the plotting of 2D data sets. However, many of the commands to modify a plot discussed in this chapter also apply to the plotting of 2D data.
The simplest data file is a text file with x- and y-coordinates ( xi,yi) for each point in a separate line, as in the example data file 'test.xy' listed below:
-2.00 -3.00
-0.02 0.87
: :
In order to plot the file 'test.xy', we only need to enter the following two commands at the KUPLOT input prompt:
load xy,test.xy
plot
The 'load' command reads the specified data file, which is in our case of the type 'xy'. The command 'plot' finally displays the plot on the screen. The resulting plot for this example can be seen in Figure 2.1. The following sections of this chapter describe the supported file formats and how to change, print and save the resulting plots.