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