Ctioga is deprecated

As of now (Mon Jan 31 2011), the use of Ctioga is deprecated, in favor of its full rewrite ctioga2. Development had stopped already two years ago. Please use ctioga2, which is now mature enough to serve as a full replacement of Ctioga, but provides much more features, such as XYZ color maps.

You may be interested in this page to help you transition to ctioga2.

Filled curves

Starting from ctioga version 1.5, it is possible to produce cool-looking filled curves, such as the following:

ctioga --xpdf --math --theme pastel \
    --fill y_axis --fill-transparency 0.5 \
    'sin(x)' 'cos(x)'

You can play around with the various boundaries for filling:

ctioga --xpdf --math --theme pastel \
    --fill bottom --fill-transparency 0.5 \
    'sin(x)' 'cos(x)'

Filled regions

Starting from ctioga 1.6, it is also possible to fill space between curves, which is fairly trickier. Lets start with the simplest one:

ctioga --xpdf --math --math-xrange -1.5:1.5 \
    --theme pastel --region --region-color Wheat \
    'x**2' '1 - x**2' --end 

Be careful, as order matters:

ctioga --xpdf --math --math-xrange -1.5:1.5 \
    --theme pastel --region --region-color Wheat \
    '1 - x**2' 'x**2' --end 

You could also have filled both regions:

ctioga --xpdf --math --math-xrange -1.5:1.5 \
    --theme pastel --region --region-color Wheat \
    --region-fill-twice \
    'x**2' '1 - x**2' --end