More elaborated plots

Starting from ctioga 1.8, new ways of organizing plots are possible, using either the --inset and --next-inset commands, or the --subplot and --next-subplot options. They both have the same effect, excepted that for --inset the box coordinates are those of the plot, whereas they also encompass the labels and title for --subplot.

“Free-form” plots

I call this way plots where the curves are not restricted within plot boundaries, but can move freely around, such as in the following example:

ctioga --xpdf --math -N  --no-axes  \
    -t "Free form plots" --inset 1.0x0.5+0-0 \
    --xaxis bottom --yaxis left 'sin(x + 0##3)' \
    --next-inset 1.0x0.5+0-0.3 \
    --no-axes 'x**2 + (0##3)*10' \
    --next-inset 0.5,0.7:0.5x0.4 \
    'x**3 + (0##3)*100 * x'

Combined plots

These are plots which essentially look as if several plots were combined into one, such as the following:

ctioga --xpdf --math -N  --no-axes  -t "Combined plots"  \
    --legend-inside 0.45x0.3+0.05-0 \
    --inset 0.45x0.6+0+0.95 \
    -l 'First curve' 'sin(x)' \
    --next-inset 0.45x0.95-1.0+0.95 \
    -l 'Second curve' 'x**3' \
    --y2 -l 'Third curve' 'x**2'