Axes styles
In this page, you will find various examples of axes-related things, which also includes backround lines/grids, non-linear axes.
Controlling axes and edges position and look
By default, axes are placed at the bottom left with corresponding
edges on the opposite side (edges look deceptively like axes). The
simplest way to change that is to use the --xaxis or --yaxis
options:
ctioga -N -t 'Axes and edges only at bottom right' \
--math 'sin(x)' --xaxis bottom --yaxis right
Note that axes labels don’t follow unless you ask with the --side
option:
ctioga -N -t 'Axes and edges only at bottom right (with label)' \
--math 'sin(x)' --xaxis bottom --yaxis right --side ylabel right
ctioga also provides fine tuning possibilities on the look of the
axes:
ctioga -N -t 'Changing axes style' --math 'x**2 - 21*x' \
--xaxis bottom,majornum --yaxis ticks
Background lines
Starting from ctioga version 1.8, it is possible to specify
background lines for each axis with the --lines-color option:
ctioga -N -t 'Background lines' \
--math 'sin(x)' --lines-color xaxis Pink --lines-color yaxis Blue