Basic examples

This page contains few examples of how to plot data files and basic mathematical curves.

Plotting data files

The following examples use the trig.dat and the trigh.dat files that can also be found in ctioga’s tarballs.

First, let’s just plot the first columns of the data file:

ctioga --xpdf trig.dat

Then, several ones

ctioga --xpdf trig.dat @1:3

Mathematical functions

You can also easily plot mathematical functions with ctioga. Just don’t forget quotes, most shells will try to interpret the parentheses.

ctioga --xpdf --math 'x**2' '1 - x**2' '30 * cos(x)'