Independently of the way to use ctioga2, though command-line or
using command files, one interacts ctioga2 by using commands.
Most commands take compulsory arguments, whose order should be respected, and even more of them accept options, that can be given in any order.
This page describes all the
commands known to ctioga2. It is generated automatically from the
inline documentation of ctioga2. Arguments to the commands, are
links to the corresponding type. So are options.
The Examples are collapsible, just click on them to see the snippets of the corresponding examples, which are links to the full code.
Plots
Available commands:
plot plot-last
plotSynopsis (file)
plot dataset /option=...
Synopsis (command-line)
--plot dataset /option=...
Available options:
as
bypass-transforms
class
clipped
color
color-map
contour-conrec
contour-minor-number
contour-minor-scale
contour-minor-style
contour-number
depth
error-bar-color
error-bar-line-width
fill
fill-color
fill-pattern
fill-transparency
id
ignore-hooks
legend
line-cap
line-style
line-width
marker
marker-angle
marker-color
marker-color-map
marker-fill-color
marker-fill-color-map
marker-line-color
marker-line-color-map
marker-line-width
marker-min-scale
marker-scale
name
path-style
region-side
split-on-nan
where
xaxis
yaxis
zaxis
Use the current backend to load the given datasets onto the data stack and plot them. It is a combination of the load and the plot-last commands; you might want to see their documentation.
plot 'silver.dat'@1:3 /color Black
plot 'silver.dat'@1:3 /color Black
plot 'silver.dat'@'$1:$3+$1/50' /legend=Curve2 /color=Blue
plot "(x>3.5 ? x/3-3 : 1/0)" /fill right
plot 50-x*x /fill=bottom /fill-transparency 0.8 /legend '$50 - x^2$'
plot x*x /color Red
plot cos(x)**2 /fill=bottom /depth=95
plot abs(x) /fill xy=2,5
plot sqrt(10-x)-4.5 /fill -5.5
plot t/3:1.52-(t/3.1415).abs /fill xy=0,1.6 /color Black
plot 'world.dat#1##153' /color DarkGoldenrod /fill close
plot 'a(x, 10,10000).arg*180/PI' /legend='Argument of $A(j \omega)$'
plot cos(atan(x))
plot '-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))'
plot acos(x)
plot 'simple.4-gnuplot.gplt@2' /marker Cross /line-style no /legend=(x**besj0(x))-2.5
plot 'simple.5-gnuplot.gplt' /legend '$\sin(x)^{J_0(x)}$'
plot 1/x
plot 'sin(x*20)*atan(x)' /line-width=0.6
plot 3.dat
plot 'using.dat'@2:4 /legend="Logged in" /line-style no /marker Times
plot 'using.dat'@3:6 /legend "\\%CPU used"
plot '5*sin(x)' /color White /line-width 2
plot 3D-data.dat@1:2:4 /zaxis zvalues /color-map \
plot 3D-data.dat@1:2:4 /zaxis zvalues \
plot 3D-data.dat@1:2:4 /zaxis zvalues \
plot 3D-data.dat@1:2:4 /zaxis zvalues \
plot t:t**2:0.1+sin(t)**2:cos(t) /marker-scale 1.3
plot 3D-data.dat@1:2:5 /zaxis zvalues \
plot sin(12*u*v) /where 'x > 0.3 || y.abs < 0.3'
plot log(x)
plot "(1 + 1e-3 * x**6)**0.5"
plot log(x)
plot log(x)
plot sin(3.141592*x)
plot 0.2*exp(-5e2*x)
plot 'x**2'
plot 'sin(omega(x) * x)'
plot 0.1*x**3
plot 'cos(x)'
plot '-sin(x)' /fill-pattern xlines
plot -sin(x) /marker-fill-color=Purple
plot 'sin(x+0##4)'
plot cos(x)**2 /line-style Dashes /legend '$\cos^2x$'
plot 50-x**2 /path-style=impulses /line-width=4 /line-cap=butt
plot exp(-x**2)
plot x**2
plot sin(x**2)
plot data.dat@1:3
plot data.dat@1:3
plot data.dat@1:3
plot 'x**2/2.25'
plot 'cos(x)'
plot '0.2*(1-x)'
plot 'x**3' /legend '$x^3$'
plot 'x**5' /legend '$x^5$'
plot 'x' /legend '$x$' /marker Square
plot 'x**2/4' /marker=Square /id x2
plot "1/($(arg))**0.5 * exp(-x**2/$(arg))"
plot "1/($(arg))**0.5 * exp(-x**2/$(arg))"
plot 'cos(x**3)'
plot x**2
plot(x**2)
plot f(x,x) /color=Purple
plot x**2
plot 'sin(x)'
plot-lastSynopsis (file)
plot-last /option=...
Synopsis (command-line)
-p /option=... --plot-last /option=...
Available options:
class
clipped
color
color-map
contour-conrec
contour-minor-number
contour-minor-scale
contour-minor-style
contour-number
depth
error-bar-color
error-bar-line-width
fill
fill-color
fill-pattern
fill-transparency
id
legend
line-cap
line-style
line-width
marker
marker-angle
marker-color
marker-color-map
marker-fill-color
marker-fill-color-map
marker-line-color
marker-line-color-map
marker-line-width
marker-min-scale
marker-scale
path-style
region-side
split-on-nan
which
xaxis
yaxis
zaxis
Plots the last dataset pushed onto the data stack (or the one specified with the which option), with the current style. All aspects of the curve style (colors, markers, line styles...) can be overridden through the use of options.
Set stylistic details of curves or other object drawn from data
Available commands:
clipped color color-map color-set contour-conrec contour-minor-number contour-minor-scale contour-minor-style contour-number depth error-bar-color error-bar-color-set error-bar-line-width error-bar-line-width-set fill fill-color fill-color-set fill-pattern fill-set fill-transparency fill-transparency-set line-cap line-style line-style-set line-width line-width-set marker marker-angle marker-color marker-color-map marker-color-set marker-fill-color marker-fill-color-map marker-fill-color-set marker-line-color marker-line-color-map marker-line-color-set marker-line-width marker-min-scale marker-scale marker-scale-set marker-set path-style path-style-set region-side region-side-set reuse-style skip split-on-nan zaxis
clippedSynopsis (file)
clipped boolean-or-auto
Synopsis (command-line)
--clipped boolean-or-auto
Sets the clipped for subsequent curves, until cancelled with auto as argument.
colorSynopsis (file)
color color-or-false-or-auto
Synopsis (command-line)
-c color-or-false-or-auto --color color-or-false-or-auto
Sets the line color for subsequent curves, until cancelled with auto as argument.
color-mapSynopsis (file)
color-map colormap-or-auto
Synopsis (command-line)
--color-map colormap-or-auto
Sets the color map for the subsequent curves, until cancelled by an auto argument.
Color maps are used for 3D plots, ie under the effet of contour, xyz-map and xy-parametric.
color-setSynopsis (file)
color-set color-or-false-set
Synopsis (command-line)
--color-set color-or-false-set
Chooses a set for the line color of subsequent curves. Also sets color to auto, so that the set takes effect immediately
color-set gnuplot
--color-set pastel1 --yoffset 2.1 --line-style auto \
color-set pastel1
ctioga2 -X --math --color-set 'Red|Blue|Green' \
ctioga2 --math --color-set 'Blue|Green|Pink|Orange' \
contour-conrecSynopsis (file)
contour-conrec boolean-or-auto
Synopsis (command-line)
--contour-conrec boolean-or-auto
If on, the subsequent curves will use the CONREC algorithm for contouring. In the opposite case, the contouring algorithm of Gri is used.
Only useful when contour is in effect.
contour-minor-numberSynopsis (file)
contour-minor-number integer-or-auto
Synopsis (command-line)
--contour-minor-number integer-or-auto
Sets the number of minor level lines between major ones (approx) for subsequent curves, until cancelled with auto as argument.
contour-minor-scaleSynopsis (file)
contour-minor-scale float-or-auto
Synopsis (command-line)
--contour-minor-scale float-or-auto
Sets the relative scale of minor level lines for subsequent curves, until cancelled with auto as argument.
contour-minor-styleSynopsis (file)
contour-minor-style line-style-or-auto
Synopsis (command-line)
--contour-minor-style line-style-or-auto
Sets the minor ticks line style for subsequent curves, until cancelled with auto as argument.
contour-numberSynopsis (file)
contour-number integer-or-auto
Synopsis (command-line)
--contour-number integer-or-auto
Sets the overall number of level lines for subsequent curves, until cancelled with auto as argument.
depthSynopsis (file)
depth integer-or-auto
Synopsis (command-line)
--depth integer-or-auto
Sets the depth for subsequent curves, until cancelled with auto as argument.
error-bar-colorSynopsis (file)
error-bar-color color-or-false-or-auto
Synopsis (command-line)
--error-bar-color color-or-false-or-auto
Sets the error bar color for subsequent curves, until cancelled with auto as argument.
error-bar-color-setSynopsis (file)
error-bar-color-set color-or-false-set
Synopsis (command-line)
--error-bar-color-set color-or-false-set
Chooses a set for the error bar color of subsequent curves. Also sets error-bar-color to auto, so that the set takes effect immediately
error-bar-line-widthSynopsis (file)
error-bar-line-width float-or-auto
Synopsis (command-line)
--error-bar-line-width float-or-auto
Sets the error bar line width for subsequent curves, until cancelled with auto as argument.
error-bar-line-width-setSynopsis (file)
error-bar-line-width-set float-set
Synopsis (command-line)
--error-bar-line-width-set float-set
Chooses a set for the error bar line width of subsequent curves. Also sets error-bar-line-width to auto, so that the set takes effect immediately
fillSynopsis (file)
fill fill-until-or-auto
Synopsis (command-line)
--fill fill-until-or-auto
Sets the Fill until for subsequent curves, until cancelled with auto as argument.
ctioga2 -X --math --fill axis 'sin(x)' /fill-color '#fcc'
ctioga2 -X --math --fill axis --fill-transparency 0.6 \
fill axis
fill axis
fill 0
fill no
fill 0
fill 0
fill-colorSynopsis (file)
fill-color color-or-auto
Synopsis (command-line)
--fill-color color-or-auto
Sets the fill color for subsequent curves, until cancelled with auto as argument.
fill-color-setSynopsis (file)
fill-color-set color-set
Synopsis (command-line)
--fill-color-set color-set
Chooses a set for the fill color of subsequent curves. Also sets fill-color to auto, so that the set takes effect immediately
fill-color-set default!!10
fill-color-set default!!10
fill-color-set default!!10
fill-color-set default!!20
fill-patternSynopsis (file)
fill-pattern fill-pattern-or-auto
Synopsis (command-line)
--fill-pattern fill-pattern-or-auto
Sets the fill pattern for subsequent curves, until cancelled with auto as argument.
fill-setSynopsis (file)
fill-set fill-until-set
Synopsis (command-line)
--fill-set fill-until-set
Chooses a set for the Fill until of subsequent curves. Also sets fill to auto, so that the set takes effect immediately
fill-transparencySynopsis (file)
fill-transparency float-or-auto
Synopsis (command-line)
--fill-transparency float-or-auto
Sets the fill transparency for subsequent curves, until cancelled with auto as argument.
fill-transparency-setSynopsis (file)
fill-transparency-set float-set
Synopsis (command-line)
--fill-transparency-set float-set
Chooses a set for the fill transparency of subsequent curves. Also sets fill-transparency to auto, so that the set takes effect immediately
line-capSynopsis (file)
line-cap line-cap-or-auto
Synopsis (command-line)
--line-cap line-cap-or-auto
Sets the line cap for subsequent curves, until cancelled with auto as argument.
line-styleSynopsis (file)
line-style line-style-or-auto
Synopsis (command-line)
--line-style line-style-or-auto
Sets the line style for subsequent curves, until cancelled with auto as argument.
line-style no
--color-set pastel1 --yoffset 2.1 --line-style auto \
ctioga2 -X --math --line-style auto 'sin(x)' 'sin(x+1)' --line-style Solid \
--line-style no 'sin(x+1)' /marker-color Pink \
ctioga2 -X --yrange -1.1:1.1 --line-style no \
ctioga2 -X --marker auto --line-style no \
line-style-setSynopsis (file)
line-style-set line-style-set
Synopsis (command-line)
--line-style-set line-style-set
Chooses a set for the line style of subsequent curves. Also sets line-style to auto, so that the set takes effect immediately
line-widthSynopsis (file)
line-width float-or-auto
Synopsis (command-line)
--line-width float-or-auto
Sets the line width for subsequent curves, until cancelled with auto as argument.
line-width-setSynopsis (file)
line-width-set float-set
Synopsis (command-line)
--line-width-set float-set
Chooses a set for the line width of subsequent curves. Also sets line-width to auto, so that the set takes effect immediately
markerSynopsis (file)
marker marker-or-auto
Synopsis (command-line)
-m marker-or-auto --marker marker-or-auto
Sets the marker for subsequent curves, until cancelled with auto as argument.
--marker auto parametric-data.dat@1:2:3
marker auto
ctioga2 -X --math /samples 31 --marker auto 'sin(x)' \
ctioga2 -X --math /samples 31 --marker auto 'sin(x)' \
--marker auto \
marker auto
marker auto
ctioga2 -X --math /xrange -1:1 /samples 31 --marker auto \
ctioga2 -X --marker auto --line-style no \
marker-angleSynopsis (file)
marker-angle float-or-auto
Synopsis (command-line)
--marker-angle float-or-auto
Sets the marker angle for subsequent curves, until cancelled with auto as argument.
marker-colorSynopsis (file)
marker-color color-or-false-or-auto
Synopsis (command-line)
--marker-color color-or-false-or-auto
Sets the marker color for subsequent curves, until cancelled with auto as argument.
marker-color-mapSynopsis (file)
marker-color-map colormap-or-auto
Synopsis (command-line)
--marker-color-map colormap-or-auto
Sets the color map for markers for subsequent curves, until cancelled with auto as argument.
marker-color-setSynopsis (file)
marker-color-set color-or-false-set
Synopsis (command-line)
--marker-color-set color-or-false-set
Chooses a set for the marker color of subsequent curves. Also sets marker-color to auto, so that the set takes effect immediately
marker-fill-colorSynopsis (file)
marker-fill-color color-or-false-or-auto
Synopsis (command-line)
--marker-fill-color color-or-false-or-auto
Sets the marker fill color for subsequent curves, until cancelled with auto as argument.
marker-fill-color-mapSynopsis (file)
marker-fill-color-map colormap-or-auto
Synopsis (command-line)
--marker-fill-color-map colormap-or-auto
Sets the color map for the lines of markers for subsequent curves, until cancelled with auto as argument.
marker-fill-color-setSynopsis (file)
marker-fill-color-set color-or-false-set
Synopsis (command-line)
--marker-fill-color-set color-or-false-set
Chooses a set for the marker fill color of subsequent curves. Also sets marker-fill-color to auto, so that the set takes effect immediately
marker-line-colorSynopsis (file)
marker-line-color color-or-false-or-auto
Synopsis (command-line)
--marker-line-color color-or-false-or-auto
Sets the marker stroke color for subsequent curves, until cancelled with auto as argument.
marker-line-color-mapSynopsis (file)
marker-line-color-map colormap-or-auto
Synopsis (command-line)
--marker-line-color-map colormap-or-auto
Sets the color map for the lines of markers for subsequent curves, until cancelled with auto as argument.
marker-line-color-setSynopsis (file)
marker-line-color-set color-or-false-set
Synopsis (command-line)
--marker-line-color-set color-or-false-set
Chooses a set for the marker stroke color of subsequent curves. Also sets marker-line-color to auto, so that the set takes effect immediately
marker-line-widthSynopsis (file)
marker-line-width float-or-auto
Synopsis (command-line)
--marker-line-width float-or-auto
Sets the marker line width for subsequent curves, until cancelled with auto as argument.
marker-min-scaleSynopsis (file)
marker-min-scale float-or-false-or-auto
Synopsis (command-line)
--marker-min-scale float-or-false-or-auto
Sets the marker scale for subsequent curves, until cancelled with auto as argument.
marker-scaleSynopsis (file)
marker-scale float-or-auto
Synopsis (command-line)
--marker-scale float-or-auto
Sets the marker scale for subsequent curves, until cancelled with auto as argument.
marker-scale-setSynopsis (file)
marker-scale-set float-set
Synopsis (command-line)
--marker-scale-set float-set
Chooses a set for the marker scale of subsequent curves. Also sets marker-scale to auto, so that the set takes effect immediately
marker-setSynopsis (file)
marker-set marker-set
Synopsis (command-line)
--marker-set marker-set
Chooses a set for the marker of subsequent curves. Also sets marker to auto, so that the set takes effect immediately
path-styleSynopsis (file)
path-style text-or-auto
Synopsis (command-line)
--path-style text-or-auto
Sets the path style for subsequent curves, until cancelled with auto as argument.
path-style-setSynopsis (file)
path-style-set text-set
Synopsis (command-line)
--path-style-set text-set
Chooses a set for the path style of subsequent curves. Also sets path-style to auto, so that the set takes effect immediately
region-sideSynopsis (file)
region-side region-side-or-auto
Synopsis (command-line)
--region-side region-side-or-auto
Sets the region side for subsequent curves, until cancelled with auto as argument.
region-side-setSynopsis (file)
region-side-set region-side-set
Synopsis (command-line)
--region-side-set region-side-set
Chooses a set for the region side of subsequent curves. Also sets region-side to auto, so that the set takes effect immediately
reuse-styleSynopsis (file)
reuse-style object
Synopsis (command-line)
--reuse-style object
After using this command, the next curve will have the same style as the curve whose name was given as the first argument (it is the name given to the `/id=` option to plot.
skipSynopsis (file)
skip /option=...
Synopsis (command-line)
--skip /option=...
Available options:
number
This command acts as if one (or number) dataset had been drawn with respect to the style of the next dataset to be drawn.
split-on-nanSynopsis (file)
split-on-nan boolean-or-auto
Synopsis (command-line)
--split-on-nan boolean-or-auto
In general, the NaN (not a number, ie invalid data points in the dataset) in a dataset are silently ignored. When this option is on, the lines of xy-plot-style plots are split upon encountering a NaN.
zaxisSynopsis (file)
zaxis text-or-auto
Synopsis (command-line)
--zaxis text-or-auto
Sets the name of the zaxis for the subsequent curves. This must be an axis that has been previously created using new-zaxis.
This axis will be used to display the colormaps of the following curve.
Commands to specify legends and tweak their look.
Available commands:
auto-legend legend legend-inside legend-line legend-multicol legend-multicol-end legend-style
auto-legendSynopsis (file)
auto-legend boolean
Synopsis (command-line)
--auto-legend boolean
When this option is in effect (off by default), all datasets get a legend, their 'dataset name', unless another legend is manually specified.
auto-legend true
auto-legend true
auto-legend true
auto-legend true
auto-legend true
auto-legend true
auto-legend true
auto-legend true
auto-legend true
auto-legend true
auto-legend true
auto-legend true
legendSynopsis (file)
legend text
Synopsis (command-line)
-l text --legend text
Sets the legend for the next dataset. Overridden by the legend option to the plot command.
ctioga2 -X --math --legend '$\sin x$' 'sin(x)' \
--legend '$\sin x$' 'sin(x)' \
--legend '$\sin x$' 'sin(x)' \
legend-insideSynopsis (file)
legend-inside aligned-point /option=...
Synopsis (command-line)
--legend-inside aligned-point /option=...
Available options:
class
dy
frame-cap
frame-color
frame-fill-color
frame-fill-pattern
frame-fill-transparency
frame-padding
frame-radius
frame-shape
frame-style
frame-width
id
picto-height
picto-to-text
picto-width
scale
symbol-scale
text-scale
vpadding
Using this command sets the position of the legends for the current (sub)plot inside it, at the precise location given.
As a shortcut, legend-inside also takes all the options that legend-style takes, with the same effect.
legend-inside tr
legend-inside tc:0.5,0.85 /scale=1.1 /frame-fill-color=white
legend-inside tl /frame-color Black
legend-inside tr
legend-inside tl /frame-color=Black
legend-inside tl /frame-color=Black
legend-inside tl /frame-color=Black
legend-inside tl /frame-color=Black
legend-inside tl /frame-color=Black
legend-inside tl /frame-color=Black
legend-inside cl
--legend-inside tc \
--legend-inside lt:0.1,0.82 /scale 1.2 /dy 1.1 \
legend-inside lc /scale 1.2 /dy 1.1 /frame-shape round /frame-padding 3mm \
legend-inside br /dy 1.1
legend-inside tc /dy 1.1 /picto-width 3mm /symbol-scale 2 /scale=1.3
legend-lineSynopsis (file)
legend-line text /option=...
Synopsis (command-line)
--legend-line text /option=...
Available options:
align
alignment
angle
color
halign
justification
position
scale
shift
text-align
text-width
valign
Adds a line of text unrelated to any curve to the legend.
The options controlling the aspect of the legend are documented in the define-text-style command.
--legend-line 'Non-trigonometric' /color Red \
--legend-line 'Non-trigonometric' /color Red \
legend-line 'End of multicol'
legend-multicolSynopsis (file)
legend-multicol /option=...
Synopsis (command-line)
--legend-multicol /option=...
Following legends will be layed out in multiple columns, until a call to legend-multicol-end.
legend-multicol-endSynopsis (file)
legend-multicol-end
Synopsis (command-line)
--legend-multicol-end
Stop layout out legends in several columns
legend-styleSynopsis (file)
legend-style /option=...
Synopsis (command-line)
--legend-style /option=...
Available options:
class
dy
frame-cap
frame-color
frame-fill-color
frame-fill-pattern
frame-fill-transparency
frame-padding
frame-radius
frame-shape
frame-style
frame-width
id
picto-height
picto-to-text
picto-width
scale
symbol-scale
text-scale
vpadding
Sets the various aspects of the style of the legends throught its options:
dy: the spacing between the baseline of consecutive lines; it is deprecated now in favor of vpadding; vpadding: the space left between the bottom of a line and the top of the next one; scale: the overall scale of the legends text-scale: the scale of the text (and the markers) inside the legends
The frame- options control the drawing of a frame around the legend; they have the same meaning as corresponding ones of define-box-style with the frame- bit dropped.
How to switch between different kinds of plot types
Available commands:
contour histogram xy-parametric xy-plot xyz-map
contourSynopsis (file)
contour
Synopsis (command-line)
--contour
Switch to contour plots for later curves. Contour plots need three columns (X,Y,Z). They have major and minor lines.
histogramSynopsis (file)
histogram /option=...
Synopsis (command-line)
--histogram /option=...
Available options:
compute-dx
cumulative
gap
intra-sep
Switch to drawing histograms.
xy-parametricSynopsis (file)
xy-parametric /option=...
Synopsis (command-line)
--xy-parametric /option=...
Available options:
z1
z2
z3
z4
Switch to XY parametric plots, that is standard XY plots whose appearance (such as color, marker color, and, potentially, marker kinds and more) are governed by one (or more ?) Z values.
xy-plotSynopsis (file)
xy-plot
Synopsis (command-line)
--xy-plot
Switch (back) to standard XY plots (ctioga's default)
xyz-mapSynopsis (file)
xyz-map
Synopsis (command-line)
--xyz-map
Switch to XYZ maps, ie plots where the color at a XY location is given by its Z value.
ctioga2 -X --xyz-map 3D-data.dat@1:2:4
xyz-map
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xyz-map --margin 0.03 \
xyz-map
xyz-map
xyz-map
xyz-map
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xyz-map --margin 0.03 \
xyz-map
ctioga2 -X --smath /samples=100 --xyz-map \
Plot coordinates
Available commands:
margin xfact xlog xoffset xrange xscale yfact ylog yoffset yrange yscale
marginSynopsis (file)
margin float
Synopsis (command-line)
--margin float
Leaves a margin around the data points. Expressed in relative size of the whole plot.
margin 0.03
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xy-parametric --margin 0.03 \
margin 0.03
ctioga2 -X --math --margin 0.03 \
ctioga2 -X --math --ylog --margin 0.03 \
margin 0.07
margin 0.03
margin 0.07
margin 0.07
margin 0.02
margin 0.07
margin 0.03
margin 0.05
margin 0.05
margin 0.03
margin 0.03
margin 0.03
margin 0.03
margin 0.03
margin 0.03
margin 0.03
margin 0.06
margin 0.03
xfactSynopsis (file)
xfact float
Synopsis (command-line)
--xfact float
Alias for xscale.
xlogSynopsis (file)
xlog boolean
Synopsis (command-line)
--xlog boolean
Uses a logarithmic scale for the X axis.
xoffsetSynopsis (file)
xoffset float
Synopsis (command-line)
--xoffset float
Adds the given offset to all X coordinates.
xrangeSynopsis (file)
xrange partial-float-range
Synopsis (command-line)
--xrange partial-float-range
Sets the range of the X coordinates.
*Important note:* when the axis is in log range (using xlog), the numbers you give are not the or ylog values, but their log10, so that to display X values from 1e-2 to 1e3, use:
xyrange -2:3
xrange 10:
xrange 10:
xrange 250:500
xrange -1:1
xrange -180:180
xrange -3:5
xrange -1.00000:24.0000
xrange 1:8
--xrange -20: --yrange -0.8:2
xrange $(xr)
xscaleSynopsis (file)
xscale float
Synopsis (command-line)
--xscale float
Multiplies the X coordinates by this factor.
yfactSynopsis (file)
yfact float
Synopsis (command-line)
--yfact float
Alias for yscale.
ylogSynopsis (file)
ylog boolean
Synopsis (command-line)
--ylog boolean
Uses a logarithmic scale for the Y axis.
yoffsetSynopsis (file)
yoffset float
Synopsis (command-line)
--yoffset float
Adds the given offset to all Y coordinates.
yrangeSynopsis (file)
yrange partial-float-range
Synopsis (command-line)
--yrange partial-float-range
Sets the range of the Y coordinates.
*Important note:* when the axis is in log range (using ylog), the numbers you give are not the or ylog values, but their log10, so that to display Y values from 1e-2 to 1e3, use:
yyrange -2:3
yrange 0:175
yrange 0:175
yrange 5:30
yrange -5:3
yrange -8:6
yrange -1:1.6
yrange -70:80
yrange -5:5
--xrange -20: --yrange -0.8:2
ctioga2 -X --yrange -1.1:1.1 data.dat@'$1:$2:yerr=$2*0.2'
ctioga2 -X --yrange -1.1:1.1 --line-style no \
yrange 0:1.1
yrange -0.1:1.1
yscaleSynopsis (file)
yscale float
Synopsis (command-line)
--yscale float
Multiplies the Y coordinates by this factor.
Tioga graphics primitives
Available commands:
draw draw-arrow draw-box draw-color-list draw-color-set-list draw-contour draw-image draw-legend-pictogram draw-line draw-line-style-list draw-marker draw-marker-list draw-marker-set-list draw-oriented-line draw-string-marker draw-tangent draw-text
drawSynopsis (file)
draw drawing-spec
Synopsis (command-line)
--draw drawing-spec
Tries to emulate the old --draw behavior of ctioga. Don't use it for new things.
draw-arrowSynopsis (file)
draw-arrow point point /option=...
Synopsis (command-line)
--draw-arrow point point /option=...
Available options:
cap
class
clipped
color
depth
head-angle
head-color
head-marker
head-scale
id
line-style
line-width
style
tail-angle
tail-color
tail-marker
tail-scale
width
Draws arrow on the current plot, using the given style. For more information on the available options, see the define-arrow-style command.
draw-arrow -0.1,0.26 0.18,-0.17 /tail-marker None /color '#0F0'
--draw-arrow 1.5,0 1.5,-1 /color=Blue \
--draw-arrow 1.5,0 1.5,-1 /class=ar /color=Green
--draw-arrow 1.5,0 1.5,-1 /color=Green
draw-boxSynopsis (file)
draw-box point point /option=...
Synopsis (command-line)
--draw-box point point /option=...
Available options:
cap
class
clipped
color
depth
fill-color
fill-transparency
fill-color
fill-pattern
fill-transparency
id
radius
shape
style
width
Draws box on the current plot, using the given style. For more information on the available options, see the define-box-style command.
draw-color-listSynopsis (file)
draw-color-list point dimension /option=...
Synopsis (command-line)
--draw-color-list point dimension /option=...
Available options:
class
clipped
columns
depth
id
padding
scale
Directly draws the list of all named colors on the current plot
draw-color-set-listSynopsis (file)
draw-color-set-list point dimension /option=...
Synopsis (command-line)
--draw-color-set-list point dimension /option=...
Available options:
class
clipped
depth
exclude
id
include
scale
Directly draws the list of all color sets on the current plot
draw-contourSynopsis (file)
draw-contour level /option=...
Synopsis (command-line)
--draw-contour level /option=...
Available options:
class
clipped
closed
color
depth
id
style
width
Directly draws contour on the current plot
draw-imageSynopsis (file)
draw-image file top-left bottom-right /option=...
Synopsis (command-line)
--draw-image file top-left bottom-right /option=...
Available options:
aspect-ratio
auto-rotate
class
clipped
depth
id
transparency
Draws image on the current plot, using the given style. For more information on the available options, see the define-image-style command.
draw-legend-pictogramSynopsis (file)
draw-legend-pictogram point object /option=...
Synopsis (command-line)
--draw-legend-pictogram point object /option=...
Available options:
class
clipped
depth
id
width
Draws the legend pictogram for the given curve
draw-lineSynopsis (file)
draw-line point point /option=...
Synopsis (command-line)
--draw-line point point /option=...
Available options:
cap
class
clipped
color
depth
head-angle
head-color
head-marker
head-scale
id
line-style
line-width
style
tail-angle
tail-color
tail-marker
tail-scale
width
Draws line on the current plot, using the given style. For more information on the available options, see the define-line-style command.
draw-line /width=5 0,50 -30,50 /color=Blue /clipped=false /depth=5
draw-line -$(l),0.5 $(l),0.5 /line-style Dashes
draw-line -15,0 15,0 /style=Dashes /color=Gray
draw-line -15,0 15,0 /style=Dashes /color=Gray
draw-line -5,0 5,0 /color=Gray /style=Dashes
draw-line-style-listSynopsis (file)
draw-line-style-list point dimension /option=...
Synopsis (command-line)
--draw-line-style-list point dimension /option=...
Available options:
class
clipped
columns
depth
id
padding
scale
Directly draws the list of all named line styles on the current plot
draw-markerSynopsis (file)
draw-marker point marker /option=...
Synopsis (command-line)
--draw-marker point marker /option=...
Available options:
alignment
angle
class
clipped
color
depth
fill-color
horizontal-scale
id
justification
scale
stroke-color
stroke-width
vertical-scale
Draws marker on the current plot, using the given style. For more information on the available options, see the define-marker-style command.
draw-marker-listSynopsis (file)
draw-marker-list point dimension /option=...
Synopsis (command-line)
--draw-marker-list point dimension /option=...
Available options:
class
clipped
columns
depth
id
padding
scale
Directly draws the list of all named markers on the current plot
draw-marker-set-listSynopsis (file)
draw-marker-set-list point dimension /option=...
Synopsis (command-line)
--draw-marker-set-list point dimension /option=...
Available options:
class
clipped
depth
exclude
id
include
scale
Directly draws the list of all marker sets on the current plot
draw-oriented-lineSynopsis (file)
draw-oriented-line point dimension /option=...
Synopsis (command-line)
--draw-oriented-line point dimension /option=...
Available options:
angle
cap
class
clipped
color
depth
head-angle
head-color
head-marker
head-scale
id
origin
style
tail-angle
tail-color
tail-marker
tail-scale
width
Draws oriented-line on the current plot, using the given style. For more information on the available options, see the define-oriented-line-style command.
draw-string-markerSynopsis (file)
draw-string-marker point text /option=...
Synopsis (command-line)
--draw-string-marker point text /option=...
Available options:
alignment
angle
class
clipped
color
depth
fill-color
font
horizontal-scale
id
justification
scale
stroke-color
stroke-width
vertical-scale
Draws marker on the current plot, using the given style. For more information on the available options, see the define-marker-style command.
draw-tangentSynopsis (file)
draw-tangent data-point /option=...
Synopsis (command-line)
--draw-tangent data-point /option=...
Available options:
cap
class
clipped
color
depth
head-angle
head-color
head-marker
head-scale
id
line-style
line-width
nbavg
style
tail-angle
tail-color
tail-marker
tail-scale
width
xextent
xfrom
xto
yextent
yfrom
yto
Draws tangent on the current plot, using the given style. For more information on the available options, see the define-arrow-style command.
draw-textSynopsis (file)
draw-text point text /option=...
Synopsis (command-line)
--draw-text point text /option=...
Available options:
alignment
angle
class
clipped
color
depth
font
halign
id
justification
position
scale
shift
text-align
text-width
valign
Draws text on the current plot, using the given style. For more information on the available options, see the define-text-style command.
draw-text 0.02,-0.6 "ctioga2"
draw-text 5,25 "(Weekend)"
draw-text 0,0.3 'Half height width: $w = \sqrt{\ln 2}$' /text-width=3cm
draw-text -4.5,0.8 '$t = '$(time)'$' /justification=left
The commands in this group drive the behaviour of the direct backend; see its documentation for more information
Available commands:
direct
directSynopsis (file)
direct
Synopsis (command-line)
--direct
Selects the 'direct' backend
The commands in this group drive the behaviour of the gnuplot backend; see its documentation for more information
Available commands:
gnuplot gnuplot-range gnuplot-samples gnuplot-vars
gnuplotSynopsis (file)
gnuplot /option=...
Synopsis (command-line)
--gnuplot /option=...
Available options:
range
samples
vars
Selects the 'gnuplot' backend
gnuplot-rangeSynopsis (file)
gnuplot-range range
Synopsis (command-line)
--gnuplot-range range
The plotting X range, such as 0:2
gnuplot-samplesSynopsis (file)
gnuplot-samples samples
Synopsis (command-line)
--gnuplot-samples samples
The number of samples
gnuplot-varsSynopsis (file)
gnuplot-vars vars
Synopsis (command-line)
--gnuplot-vars vars
A colon-separated override of local variables, such as a=1;b=3;c=5
The commands in this group drive the behaviour of the math backend; see its documentation for more information
Available commands:
math math-log math-samples math-trange math-xrange
mathSynopsis (file)
math /option=...
Synopsis (command-line)
--math /option=...
Available options:
log
samples
trange
xrange
Selects the 'math' backend
math /xrange=-10:10
math
math
math
math
math /xrange=0:10
math /trange=-3.141592:3.141592
math /xrange 1.1:9e4 /log=true
math /samples 50 /xrange -10:10
math /samples 100 /xrange -1.57079:3.141593
math /xrange -3:5 /samples 200
math /xrange -15.7075:15.7075
math /samples=800 /xrange=-30:20
math /xrange -15:15
math /trange 0:20 /samples=50
ctioga2 -X --math 'sin(x)' 'cos(x)' -y '$y$ values' \
ctioga2 -X --math 'sin(x)' 'cos(x)' \
ctioga2 -X --math --margin 0.03 \
ctioga2 -X --math --ylog --margin 0.03 \
ctioga2 -X --math 'sin(x)' 'cos(x)' \
math /xrange 1e3:7e5
math
math /xrange 1e3:7e5
math /xrange 1e3:7e5
math /xrange -2:2
math /xrange 3e-2:5e-2
ctioga2 -X --math 'sin(x)' --page-size '7cmx12cm'
ctioga2 -X --math 'x**2' --inset 'tl:0.2,0.8:0.4,0.3' \
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
math
math
math
ctioga2 -X --math --region /color Blue /transparency 0.7 \
ctioga2 -X --math --region /color Blue /transparency 0.7 \
ctioga2 -X --math 'sin(x)' 'sin(x+1)' 'sin(x+2)' 'sin(x+3)' \
ctioga2 -X --math --line-style auto 'sin(x)' 'sin(x+1)' --line-style Solid \
ctioga2 -X --math /samples 31 --marker auto 'sin(x)' \
ctioga2 -X --math /samples 31 --marker auto 'sin(x)' \
ctioga2 -X --math --fill axis 'sin(x)' /fill-color '#fcc'
ctioga2 -X --math --fill axis --fill-transparency 0.6 \
math
math
ctioga2 -X --math --gradient Red Blue \
ctioga2 -X --math --color-set 'Red|Blue|Green' \
math /samples=51
math /samples=51
math
math /samples=11
ctioga2 -X --math /xrange -1:1 /samples 101 'x**2' 'x'
ctioga2 -X --math /xrange -1:1 /samples 31 --marker auto \
ctioga2 -X --math /trange -3.1415:3.1415 /samples 101 'sin(t):cos(t)' \
math /xrange=-3:3
math /xrange=-3:3
math /xrange=-3:3
math /samples=15 /xrange=-1.5:1.5
math /samples=15 /xrange=-1.5:1.5
math /samples=15 /xrange=-1:1
ctioga2 -X --math --legend '$\sin x$' 'sin(x)' \
ctioga2 -X --math --legend-line 'Trigonometric' /color Blue \
-X --math --legend-line 'Trigonometric' /color Blue \
ctioga2 -X --math \
ctioga2 -X --math \
math
math /xrange=-1:1
math /samples=20
math
math /xrange -5:5
math /xrange -5:5
ctioga2 -X --math /xrange -3:3 'sin(3.1415*x)' \
ctioga2 -X --math /xrange -3:3 'sin(3.1415*x)' \
ctioga2 -X --math /xrange -3:3 'sin(3.1415*x)' \
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
math
ctioga2 --math --color-set 'Blue|Green|Pink|Orange' \
math /xrange = -1:1
math(/xrange=-1:1)
math /samples=1000
math
ctioga2 --title 'A nice title, for sure' --math 'sin(x)' \
math
math-logSynopsis (file)
math-log log
Synopsis (command-line)
--math-log log
Space samples logarithmically
math-samplesSynopsis (file)
math-samples samples
Synopsis (command-line)
--math-samples samples
The number of points
math-trangeSynopsis (file)
math-trange trange
Synopsis (command-line)
--math-trange trange
T range (a:b) (parametric plot)
math-xrangeSynopsis (file)
math-xrange xrange
Synopsis (command-line)
--math-xrange xrange
X range (a:b)
The commands in this group drive the behaviour of the smath backend; see its documentation for more information
Available commands:
smath smath-samples smath-urange smath-usamples smath-vrange smath-vsamples
smathSynopsis (file)
smath /option=...
Synopsis (command-line)
--smath /option=...
Available options:
samples
urange
usamples
vrange
vsamples
Selects the 'smath' backend
smath-samplesSynopsis (file)
smath-samples samples
Synopsis (command-line)
--smath-samples samples
Number of samples (default, overriden by variable-specific specs)
smath-urangeSynopsis (file)
smath-urange urange
Synopsis (command-line)
--smath-urange urange
U range (a:b)
smath-usamplesSynopsis (file)
smath-usamples usamples
Synopsis (command-line)
--smath-usamples usamples
Number of U samples
smath-vrangeSynopsis (file)
smath-vrange vrange
Synopsis (command-line)
--smath-vrange vrange
V range (a:b)
smath-vsamplesSynopsis (file)
smath-vsamples vsamples
Synopsis (command-line)
--smath-vsamples vsamples
Number of V samples
The commands in this group drive the behaviour of the text backend; see its documentation for more information
Available commands:
csv text text-col text-header-line text-parameters text-separator text-skip text-split
csvSynopsis (file)
csv
Synopsis (command-line)
--csv
Now parse the following data files as CSV. Equivalent to
text /separator=/[,;]/
textSynopsis (file)
text /option=...
Synopsis (command-line)
--text /option=...
Available options:
col
header-line
parameters
separator
skip
split
Selects the 'text' backend
text-colSynopsis (file)
text-col col
Synopsis (command-line)
--text-col col
Which columns to use when the @1:2 syntax is not used
text-header-lineSynopsis (file)
text-header-line header-line
Synopsis (command-line)
--text-header-line header-line
Regular expression indicating the header line (containing column names) (default /^##/
text-parametersSynopsis (file)
text-parameters parameters
Synopsis (command-line)
--text-parameters parameters
Regular expression for extracting parameters from a file. Defaults to nil (ie nothing)
text-separatorSynopsis (file)
text-separator separator
Synopsis (command-line)
--text-separator separator
The columns separator. Defaults to / +/
text-skipSynopsis (file)
text-skip skip
Synopsis (command-line)
--text-skip skip
Number of lines to be skipped at the beginning of the file
text-splitSynopsis (file)
text-split split
Synopsis (command-line)
--text-split split
If true, splits files into subsets on blank/non number lines
Commands providing control over the LaTeX output (preamble, packages...)
Available commands:
preamble set-global-font use utf8
preambleSynopsis (file)
preamble text
Synopsis (command-line)
--preamble text
Adds the given string to the LaTeX preamble of the output.
set-global-fontSynopsis (file)
set-global-font /option=...
Synopsis (command-line)
--set-global-font /option=...
Available options:
size
Set global font. Sets the size of everything, including that of text that has already been used.
useSynopsis (file)
use text /option=...
Synopsis (command-line)
--use text /option=...
Available options:
arguments
Adds a command to include the LaTeX package into the preamble. The arguments, if given, are given within [square backets].
utf8Synopsis (file)
utf8
Synopsis (command-line)
--utf8
Makes ctioga2 use UTF-8 for all text. It is exactly equivalent to the command preamble with the argument:
\usepackage[utf8]{inputenc}\usepackage[T1]{fontenc}
Subplots and assimilated
Available commands:
end frame-margins gradient hide inset next-inset padding plot-scale region reopen root-plot setup-grid text-adjust-mode
endSynopsis (file)
end
Synopsis (command-line)
--end
Leaves the current subobject.
frame-marginsSynopsis (file)
frame-margins frame-margins /option=...
Synopsis (command-line)
--frame-margins frame-margins /option=...
Available options:
bottom
left
right
top
Sets the margins for the current plot. Margins are the same things as the position (such as specified for and inset). Using this within an inset or more complex plots might produce unexpected results. The main use of this function is to control the padding around simple plots.
The options override the contents of the margin, which makes it easy to set all the dimensions to a given value and just override the ones you need to:
frame-margins 2mm /left=1cm
This sets all the margins around the side to 2mm excepted the left one, which means in particular the bottom axis tick labels will be cut.
gradientSynopsis (file)
gradient color color /option=...
Synopsis (command-line)
--gradient color color /option=...
All the curves between this command and the corresponding end will have their color set to a weighted average of the colors given as argument. This gives a neat gradient effect.
hideSynopsis (file)
hide objects /option=...
Synopsis (command-line)
--hide objects /option=...
Available options:
show
Hides all the named objects in the list. Useful for creating animations.
insetSynopsis (file)
inset box /option=...
Synopsis (command-line)
--inset box /option=...
Starts a new inset within the given box.
If no graph has been started yet, it just creates a new graph using the given box. In short, it does what it seems it should.
ctioga2 -X --math 'x**2' --inset 'tl:0.2,0.8:0.4,0.3' \
--inset grid:0,0 'sin(x)' \
--inset grid:0-1,0 'sin(x)' \
inset grid:0,0
inset grid:0,0
inset grid:next
--inset grid:0,0 'sin(x)' \
next-insetSynopsis (file)
next-inset box /option=...
Synopsis (command-line)
--next-inset box /option=...
Has the same effet as end followed by inset.
Particularly useful for chaining subgraphs. In that case, you might be interested in the grid box specification and setup-grid.
--next-inset grid:1,1 'x**3'
--next-inset grid:1,1 'x**3'
next-inset grid:1,0
next-inset grid:0,1
next-inset grid:next
--next-inset grid:1,1 'x**3'
paddingSynopsis (file)
padding dimension
Synopsis (command-line)
--padding dimension
When the frame-margins is set to automatic, ctioga2 leaves that much space around the plot on the sides where there are no labels.
plot-scaleSynopsis (file)
plot-scale float /option=...
Synopsis (command-line)
--plot-scale float /option=...
Available options:
what
Applies a scaling factor to the whole current subplot. Depending on the 'what' option (default text), the scale applies to:
regionSynopsis (file)
region /option=...
Synopsis (command-line)
--region /option=...
Available options:
class
color
id
pattern
reversed-color
reversed-pattern
reversed-transparency
transparency
The curves up to the corresponding end will be considered for delimiting a colored region between them. The actual position of the curves with respect to the region can be fine-tuned using the region-side command (or the corresponding option to plot).
region /color=Red
region /color=Red /pattern=xlines
region /color=Red /reversed-color=Green
ctioga2 -X --math --region /color Blue /transparency 0.7 \
ctioga2 -X --math --region /color Blue /transparency 0.7 \
reopenSynopsis (file)
reopen object
Synopsis (command-line)
--reopen object
Reopens a previously finished container, such as a subplot, a region or a gradient. Provide the unique name you gave as the /id= option to the first command
root-plotSynopsis (file)
root-plot /option=...
Synopsis (command-line)
--root-plot /option=...
Begins the root plot. This command is only necessary if you want to give styling information to the root plot.
setup-gridSynopsis (file)
setup-grid text /option=...
Synopsis (command-line)
--setup-grid text /option=...
Available options:
bottom
dx
dy
left
right
top
Sets up a grid of the given layout (such as 2x1). After this command, arguments such as grid:0,1 can be used as the box argument of inset and next-inset commands.
Alternatively, the layout can be specified as 1,2,1x1,4, in which case there are three columns and two rows; the second column is 2 times larger than the other ones, while the second row is four times larger than the first.
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
setup-grid 2x1 /top=1mm
setup-grid 1x1,2 /top=1mm /right=2mm /dy=2mm
setup-grid
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
text-adjust-modeSynopsis (file)
text-adjust-mode text-adjust-mode
Synopsis (command-line)
--text-adjust-mode text-adjust-mode
When this is on (the default), ctioga2 tries to be smart about the size of the text bits around the plot. However, this can be bothersome at times, so you can disable that with this command.
Axes and labels
Available commands:
axis-style background-grid background-lines bottom clear-axes drawing-frame label-style left new-zaxis no-title no-xlabel no-ylabel right ticks title top x2 xaxis xlabel y2 yaxis ylabel
axis-styleSynopsis (file)
axis-style axis /option=...
Synopsis (command-line)
--axis-style axis /option=...
Available options:
also-axes
axis-label-alignment
axis-label-angle
axis-label-color
axis-label-halign
axis-label-justification
axis-label-loc
axis-label-position
axis-label-scale
axis-label-shift
axis-label-text
axis-label-text-align
axis-label-text-width
axis-label-valign
background-lines-cap
background-lines-color
background-lines-style
background-lines-width
decoration
line-width
location
log
major-tick-length
major-tick-width
minor-tick-length
minor-tick-width
offset
stroke-color
tick-label-alignment
tick-label-angle
tick-label-color
tick-label-halign
tick-label-justification
tick-label-position
tick-label-scale
tick-label-shift
tick-label-text-align
tick-label-text-width
tick-label-valign
ticks-format
ticks-format-last
ticks-labels
ticks-major
ticks-major-delta
ticks-major-number
ticks-major-sep
ticks-minor
ticks-minor-delta
ticks-minor-number
ticks-minor-sep-min
ticks-side
transform
This command can be used to set various aspects of the style of the given axis, through its various options, which are documented in more details in the define-axis-style command -- excepted for the ticks bit which are documented in the ticks command.
If the option also-axes is specified, the style is also applied to the comma-separated list of axes it contains.
axis-style left /decoration=major /also-axes=right,top,bottom
axis-style left /log=true
--axis-style right /decoration major \
background-gridSynopsis (file)
background-grid color-or-false /option=...
Synopsis (command-line)
--background-grid color-or-false /option=...
Available options:
cap
style
width
Shortcut to set the color for the left and bottom axes
background-linesSynopsis (file)
background-lines axis color-or-false /option=...
Synopsis (command-line)
--background-lines axis color-or-false /option=...
Available options:
cap
style
width
Sets the color of the background lines for the given axis.
background-lines bottom Black /style=Dots
background-lines left Black /style Dots
background-lines right Grey $(bg_lines)
background-lines bottom Gray /style Dots
background-lines bottom Gray /style Dots
bottomSynopsis (file)
bottom axis-decoration /option=...
Synopsis (command-line)
--bottom axis-decoration /option=...
Available options:
axis-label-alignment
axis-label-angle
axis-label-color
axis-label-halign
axis-label-justification
axis-label-loc
axis-label-position
axis-label-scale
axis-label-shift
axis-label-text
axis-label-text-align
axis-label-text-width
axis-label-valign
background-lines-cap
background-lines-color
background-lines-style
background-lines-width
line-width
location
log
major-tick-length
major-tick-width
minor-tick-length
minor-tick-width
offset
stroke-color
tick-label-alignment
tick-label-angle
tick-label-color
tick-label-halign
tick-label-justification
tick-label-position
tick-label-scale
tick-label-shift
tick-label-text-align
tick-label-text-width
tick-label-valign
ticks-format
ticks-format-last
ticks-labels
ticks-major
ticks-major-delta
ticks-major-number
ticks-major-sep
ticks-minor
ticks-minor-delta
ticks-minor-number
ticks-minor-sep-min
ticks-side
transform
Sets the type of the bottom axis.
The options have the same meaning as for define-axis-style, see that command for more information.
clear-axesSynopsis (file)
clear-axes
Synopsis (command-line)
--clear-axes
Removes all the axes and their associated labels
drawing-frameSynopsis (file)
drawing-frame /option=...
Synopsis (command-line)
--drawing-frame /option=...
Available options:
units
Setup a drawing frame, ie a frame in which the top-left point is at 0,0, with X and Y values positive over the whole frame, and counted in centimeters (or with the unit given using the /units option, ie /units=mm expressed in millimeters or /units=12pt expressed in multiple of 12 TeX points).
label-styleSynopsis (file)
label-style label /option=...
Synopsis (command-line)
--label-style label /option=...
Available options:
align
alignment
angle
color
halign
justification
loc
position
scale
shift
text
text-align
text-width
valign
Sets the style of the given label (see the type label for more information). See define-text-style for detailed information about the meaning of the options.
The option text permits to also set the text of the label (does not work for ticks).
For tick labels, setting the color option also sets the color for the lines of the corresponding axis. If you don't want that, you can override the color using the stroke-color option of axis-style. This will only work with Tioga version 1.11 or greater.
label-style right_label /text='Phase of $A(j\omega)$ (degrees)' /shift=2.1
--label-style bottom /color Blue
leftSynopsis (file)
left axis-decoration /option=...
Synopsis (command-line)
--left axis-decoration /option=...
Available options:
axis-label-alignment
axis-label-angle
axis-label-color
axis-label-halign
axis-label-justification
axis-label-loc
axis-label-position
axis-label-scale
axis-label-shift
axis-label-text
axis-label-text-align
axis-label-text-width
axis-label-valign
background-lines-cap
background-lines-color
background-lines-style
background-lines-width
line-width
location
log
major-tick-length
major-tick-width
minor-tick-length
minor-tick-width
offset
stroke-color
tick-label-alignment
tick-label-angle
tick-label-color
tick-label-halign
tick-label-justification
tick-label-position
tick-label-scale
tick-label-shift
tick-label-text-align
tick-label-text-width
tick-label-valign
ticks-format
ticks-format-last
ticks-labels
ticks-major
ticks-major-delta
ticks-major-number
ticks-major-sep
ticks-minor
ticks-minor-delta
ticks-minor-number
ticks-minor-sep-min
ticks-side
transform
Sets the type of the left axis.
The options have the same meaning as for define-axis-style, see that command for more information.
new-zaxisSynopsis (file)
new-zaxis text /option=...
Synopsis (command-line)
--new-zaxis text /option=...
Available options:
axis-label-alignment
axis-label-angle
axis-label-color
axis-label-halign
axis-label-justification
axis-label-loc
axis-label-position
axis-label-scale
axis-label-shift
axis-label-text
axis-label-text-align
axis-label-text-width
axis-label-valign
background-lines-cap
background-lines-color
background-lines-style
background-lines-width
bar-shift
bar-size
bounds
class
decoration
id
line-width
location
log
major-tick-length
major-tick-width
minor-tick-length
minor-tick-width
offset
padding
stroke-color
tick-label-alignment
tick-label-angle
tick-label-color
tick-label-halign
tick-label-justification
tick-label-position
tick-label-scale
tick-label-shift
tick-label-text-align
tick-label-text-width
tick-label-valign
ticks-format
ticks-format-last
ticks-labels
ticks-major
ticks-major-delta
ticks-major-number
ticks-major-sep
ticks-minor
ticks-minor-delta
ticks-minor-number
ticks-minor-sep-min
ticks-side
transform
Creates a named Z axis that can display information from Z color maps
--new-zaxis zvalues /location right \
--new-zaxis zvalues /location right \
new-zaxis zvalues /location right
new-zaxis zvalues /location right
new-zaxis zvalues /location right
new-zaxis zvalues /location right
--new-zaxis zvalues /location right \
new-zaxis zvalues /location right /bar_size=4mm
no-titleSynopsis (file)
no-title
Synopsis (command-line)
--no-title
Removes the title of the current plot.
no-xlabelSynopsis (file)
no-xlabel
Synopsis (command-line)
--no-xlabel
Removes the X label for the current plot.
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-xlabel
no-ylabelSynopsis (file)
no-ylabel
Synopsis (command-line)
--no-ylabel
Removes the Y label for the current plot.
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
no-ylabel
rightSynopsis (file)
right axis-decoration /option=...
Synopsis (command-line)
--right axis-decoration /option=...
Available options:
axis-label-alignment
axis-label-angle
axis-label-color
axis-label-halign
axis-label-justification
axis-label-loc
axis-label-position
axis-label-scale
axis-label-shift
axis-label-text
axis-label-text-align
axis-label-text-width
axis-label-valign
background-lines-cap
background-lines-color
background-lines-style
background-lines-width
line-width
location
log
major-tick-length
major-tick-width
minor-tick-length
minor-tick-width
offset
stroke-color
tick-label-alignment
tick-label-angle
tick-label-color
tick-label-halign
tick-label-justification
tick-label-position
tick-label-scale
tick-label-shift
tick-label-text-align
tick-label-text-width
tick-label-valign
ticks-format
ticks-format-last
ticks-labels
ticks-major
ticks-major-delta
ticks-major-number
ticks-major-sep
ticks-minor
ticks-minor-delta
ticks-minor-number
ticks-minor-sep-min
ticks-side
transform
Sets the type of the right axis.
The options have the same meaning as for define-axis-style, see that command for more information.
ticksSynopsis (file)
ticks axis /option=...
Synopsis (command-line)
--ticks axis /option=...
Available options:
format
format-last
labels
major
major-delta
major-number
major-sep
minor
minor-delta
minor-number
minor-sep-min
This command can be used to control the location of major and minor ticks and the text of their labels for the given axis. Options available:
format the format of the tick labels, using a sprintf-like syntax (see below) format-last the format of the last of the tick labels (useful to include an overall "power-of-ten" factor major a space or comma-separated list of the positions of the major (labeled) ticks minor same for the minor ticks label a comma-separated list of the tick labels (must be the same number of elements as that of the major list). If you must include a comma inside, then use || as a separator.
Format is a normal sprintf format, with the following additional special codes:
%p the "common power of 10": if you divide the tick values by 10 to the power %p, the smallest absolute value will be between 1 and 10 (excluding 0 of course) %b... is the tick value divided by this common power of 10. You *must* follow this spec by a usual sprintf format: %b.3g would get you a number with 3 significant digits ticks bottom /format "%.1e"
ticks left /minor-delta 2 /major-delta 5
ticks bottom /minor 1e5,1.5e5,2e5,3.5e5,5e5,6e5 /major 0.5e5,2.5e5,4e5,5.5e5 \
ticks top /minor $(minor) /major $(major)
ticks bottom /minor -1.75,-1.25,-0.75,-0.25,0.25,0.75,1.25,1.75\
titleSynopsis (file)
title text /option=...
Synopsis (command-line)
-t text /option=... --title text /option=...
Available options:
align
alignment
angle
color
halign
justification
loc
position
scale
shift
text-align
text-width
valign
Sets the title of the current plot.
title "Fill area between two curves"
title "Fill area between two curves"
title "Fill area between two curves (above/below)"
title "plot with filled curves"
title "Intersection of two parabolas"
title "Intersection of two parabolas"
title "Filled sinus and cosinus curves"
title 'The red bat: abs(x) filled to $(2,5)$'
title "Sqrt stripes on filled background"
title "Let's smile with parametric filled curves"
title "world.dat plotted with filledcurves"
title
title "Convex November 1-7 1989 Circadian"
title "Convex November 1-7 1989"
'cos(x)' -t 'Inset !' --end 'x'
title 'Filled trigonometry'
-t "A neat (parametric) circle"
ctioga2 -X data.dat data.dat@1:3 --title 'A nice title'
--title 'A nice title' /scale=2 /color Blue
title 'A nice title' /scale=2 /color=Blue
title 'Sine waves'
title '\centering This is a very long title about sine waves' \
title 'Square of $x$'
title('Square of $x$')
title "$(txt)"
ctioga2 --title 'A nice title, for sure' --math 'sin(x)' \
title 'A nice title, for sure'
topSynopsis (file)
top axis-decoration /option=...
Synopsis (command-line)
--top axis-decoration /option=...
Available options:
axis-label-alignment
axis-label-angle
axis-label-color
axis-label-halign
axis-label-justification
axis-label-loc
axis-label-position
axis-label-scale
axis-label-shift
axis-label-text
axis-label-text-align
axis-label-text-width
axis-label-valign
background-lines-cap
background-lines-color
background-lines-style
background-lines-width
line-width
location
log
major-tick-length
major-tick-width
minor-tick-length
minor-tick-width
offset
stroke-color
tick-label-alignment
tick-label-angle
tick-label-color
tick-label-halign
tick-label-justification
tick-label-position
tick-label-scale
tick-label-shift
tick-label-text-align
tick-label-text-width
tick-label-valign
ticks-format
ticks-format-last
ticks-labels
ticks-major
ticks-major-delta
ticks-major-number
ticks-major-sep
ticks-minor
ticks-minor-delta
ticks-minor-number
ticks-minor-sep-min
ticks-side
transform
Sets the type of the top axis.
The options have the same meaning as for define-axis-style, see that command for more information.
--top off --bottom major-num /stroke_color Blue \
top line
top line
top line
top major-num /transform 8.314/x /axis-label-text='$T$ (K)'
x2Synopsis (file)
x2
Synopsis (command-line)
--x2
Switches to using the top axis for X axis for the subsequent curves, and turns on full decoration for the right axis. Shortcut for:
xaxis top axis-style top /decoration=full
xaxisSynopsis (file)
xaxis axis
Synopsis (command-line)
--xaxis axis
Sets the default axis for the X axis for all subsequent commands take rely on default axes (such as plot, xrange, yrange...).
xlabelSynopsis (file)
xlabel text /option=...
Synopsis (command-line)
-x text /option=... --xlabel text /option=...
Available options:
align
alignment
angle
color
halign
justification
loc
position
scale
shift
text-align
text-width
valign
Sets the X label of the current plot.
xlabel '$j \omega$ (radians)'
-x '$x$ values' /color Blue
xlabel '$1/(RT)$ (mol/J)'
xlabel '$t$'
xlabel 'My $x$ label'
xlabel 'My $x$ label'
xlabel "Position"
-x 'The X label' -y 'The Y label'
xlabel 'The X label'
y2Synopsis (file)
y2
Synopsis (command-line)
--y2
Switches to using the right axis for Y axis for the subsequent curves, and turns on full decoration for the right axis. Shortcut for:
yaxis right axis-style right /decoration=full
yaxisSynopsis (file)
yaxis axis
Synopsis (command-line)
--yaxis axis
Sets the default axis for the Y axis for all subsequent commands take rely on default axes (such as plot, xrange, yrange...).
ylabelSynopsis (file)
ylabel text /option=...
Synopsis (command-line)
-y text /option=... --ylabel text /option=...
Available options:
align
alignment
angle
color
halign
justification
loc
position
scale
shift
text-align
text-width
valign
Sets the Y label of the current plot.
ylabel 'Magnitude of $A(j \omega)$'
--y2 '0.5 * x**2' -y '$y_2$ values' \
ylabel ""
ylabel '$\sin \left\{\omega(t) \, t\right\}$'
ylabel 'My $y$ label'
ylabel 'My $y$ label'
ylabel "Concentration"
-x 'The X label' -y 'The Y label'
ylabel 'The Y label'
Commands dealing with the aspect of the background of a plot (excluding background lines, which are linked to axes).
Available commands:
background watermark
backgroundSynopsis (file)
background color-or-false
Synopsis (command-line)
--background color-or-false
Sets the background color for the current (and subsequent?) plot.
watermarkSynopsis (file)
watermark text /option=...
Synopsis (command-line)
--watermark text /option=...
Available options:
alignment
angle
color
fill-color
font
horizontal-scale
justification
scale
stroke-color
stroke-width
vertical-scale
Sets a watermark for the background of the current plot.
Commands for defining default styles.
All commands take the selector of the style to be defined. It is a CSS-like selector, relying on #id and .class, and using #parentality. Therefore, defining a style for .insets #stuff will define it for an object named stuff, but only if it is contained within another one that has a .insets class.
ctioga2 does not support changing a style after its use. It may affect only the following objects or all the ones that were created from the beginning, depending on the context. For safety, only define style before issueing any graphics command.
Available commands:
define-arrow-style define-axis-style define-background-style define-box-style define-curve-style define-image-style define-legend-style define-line-style define-marker-style define-oriented-line-style define-style define-text-style define-title-style load-style
define-arrow-styleSynopsis (file)
define-arrow-style text /option=...
Synopsis (command-line)
--define-arrow-style text /option=...
Available options:
cap
color
head-angle
head-color
head-marker
head-scale
style
tail-angle
tail-color
tail-marker
tail-scale
width
Sets the default style for arrows. All arrow styles descend from the base style. Use a style different than base by passing its name as the /base-style option to the draw-arrow command.
Meaning of the style parameters:
color, style and width: same as in define-line-style head-marker, tail-marker: a marker to be used for the head or for the tail head-scale, tail-scale: scale of the head or tail markers head-angle, tail-angle: rotate the head or the tail by that many degrees head-color, tail-color: the color of the head or tail define-axis-styleSynopsis (file)
define-axis-style text /option=...
Synopsis (command-line)
--define-axis-style text /option=...
Available options:
axis-label-alignment
axis-label-angle
axis-label-color
axis-label-halign
axis-label-justification
axis-label-loc
axis-label-position
axis-label-scale
axis-label-shift
axis-label-text
axis-label-text-align
axis-label-text-width
axis-label-valign
background-lines-cap
background-lines-color
background-lines-style
background-lines-width
decoration
line-width
location
log
major-tick-length
major-tick-width
minor-tick-length
minor-tick-width
offset
stroke-color
tick-label-alignment
tick-label-angle
tick-label-color
tick-label-halign
tick-label-justification
tick-label-position
tick-label-scale
tick-label-shift
tick-label-text-align
tick-label-text-width
tick-label-valign
ticks-format
ticks-format-last
ticks-labels
ticks-major
ticks-major-delta
ticks-major-number
ticks-major-sep
ticks-minor
ticks-minor-delta
ticks-minor-number
ticks-minor-sep-min
ticks-side
transform
Sets the style for a whole axis. All axis styles descend from the base style. Horizontal and vertical axis styles descend from the x and y styles, and plot sides are styled with the left, right, top and bottom styles.
Axis styles have lots of parameters:
axis-label- and tick-label- parameters are title style parameters whose meaning is given in define-title-style, that affect ticks and axis labels decoration: a axis-decoration that specify which ticks and tick labels to draw background-lines- parameters define the style of background lines, as in define-line-style define-axis-style '.grid-2-0 axis' /decoration=None
--define-axis-style .right /stroke-color=Purple \
define-background-styleSynopsis (file)
define-background-style text /option=...
Synopsis (command-line)
--define-background-style text /option=...
Available options:
background-color
watermark
watermark-alignment
watermark-angle
watermark-color
watermark-fill-color
watermark-font
watermark-horizontal-scale
watermark-justification
watermark-scale
watermark-stroke-color
watermark-stroke-width
watermark-vertical-scale
Sets the style for plot background. All background styles descend from the base style. In addition, the background of a plot is change by the style name background.
Meaning of the style parameters:
watermark: the text of the watermark watermark_ styles have the same meaning as in define-text-style, as the watermark is a string marker background_color: the color of the background define-background-style '.grid-odd-column background' /background-color Blue!15
--define-background-style '*' /background_color=Purple!10 \
define-box-styleSynopsis (file)
define-box-style text /option=...
Synopsis (command-line)
--define-box-style text /option=...
Available options:
cap
color
fill-color
fill-pattern
fill-transparency
radius
shape
style
width
Sets the default style for boxes. All box styles descend from the base style. Use a style different than base by passing its name as the /base-style option to the draw-box command.
Meaning of the style parameters:
color, style and width: same as in define-line-style fill-color: fill color for the box fill-transparency: the transparency for the fill, from 0 to 1 define-curve-styleSynopsis (file)
define-curve-style text /option=...
Synopsis (command-line)
--define-curve-style text /option=...
Available options:
clipped
color
color-map
contour-conrec
contour-minor-number
contour-minor-scale
contour-minor-style
contour-minor-width
contour-number
contour-use-naturals
depth
error-bar-color
error-bar-line-cap
error-bar-line-color
error-bar-line-style
error-bar-line-width
fill
fill-close-type
fill-color
fill-pattern
fill-transparency
legend
line-cap
line-color
line-style
line-width
location-xaxis
location-yaxis
marker
marker-angle
marker-color
marker-color-map
marker-fill-color
marker-fill-color-map
marker-line-color
marker-line-color-map
marker-line-width
marker-marker
marker-min-scale
marker-scale
path-style
region-position
split-on-nan
zaxis
Sets the default style for the named plot background.
define-image-styleSynopsis (file)
define-image-style text /option=...
Synopsis (command-line)
--define-image-style text /option=...
Available options:
aspect-ratio
auto-rotate
transparency
Sets the default style for the named image.
define-legend-styleSynopsis (file)
define-legend-style text /option=...
Synopsis (command-line)
--define-legend-style text /option=...
Available options:
dy
frame-cap
frame-color
frame-fill-color
frame-fill-pattern
frame-fill-transparency
frame-padding
frame-radius
frame-shape
frame-style
frame-width
picto-height
picto-to-text
picto-width
scale
symbol-scale
text-scale
vpadding
Sets the style for legends.
define-line-styleSynopsis (file)
define-line-style text /option=...
Synopsis (command-line)
--define-line-style text /option=...
Available options:
cap
color
style
width
Sets the default style for lines. All line styles descend from the base style. Use a style different than base by passing its name as the /base-style option to the draw-line command.
Meaning of the style parameters:
color: the color of the line, see color style: the line style, see line-style width: the line width (in points) --define-line-style * /color=Pink
makes all lines pink (unless overriden by the /color option to draw-line), while
--define-line-style .pink /color=Pink
only affect those to which the /class=pink style option was given.
define-marker-styleSynopsis (file)
define-marker-style text /option=...
Synopsis (command-line)
--define-marker-style text /option=...
Available options:
alignment
angle
color
fill-color
font
horizontal-scale
justification
scale
stroke-color
stroke-width
vertical-scale
Sets the style for marker and marker strings. All marker and marker string styles descend from the base style. Use a style different than base by passing its name as the /base-style option to the draw-marker or draw-string-marker commands.
Meaning of the style parameters:
alignment, justification, angle, color and scale: as in define-text-style fill-color and stroke_color: markers are both stroked and filled, you can control all colors in one go using color or specifying each with fill-color and stroke_color font: is a PDF font number (from 1 to 14), only used for marker strings horizontal-scale, vertical-scale: scales the marker only horizontally or vertically define-oriented-line-styleSynopsis (file)
define-oriented-line-style text /option=...
Synopsis (command-line)
--define-oriented-line-style text /option=...
Available options:
angle
cap
color
head-angle
head-color
head-marker
head-scale
origin
style
tail-angle
tail-color
tail-marker
tail-scale
width
Sets the default style for the named oriented lines.
define-styleSynopsis (file)
define-style text /option=...
Synopsis (command-line)
--define-style text /option=...
Available options:
alignment
angle
aspect-ratio
auto-rotate
axis-label-alignment
axis-label-angle
axis-label-color
axis-label-halign
axis-label-justification
axis-label-loc
axis-label-position
axis-label-scale
axis-label-shift
axis-label-text
axis-label-text-align
axis-label-text-width
axis-label-valign
background-color
background-lines-cap
background-lines-color
background-lines-style
background-lines-width
cap
clipped
color
color-map
contour-conrec
contour-minor-number
contour-minor-scale
contour-minor-style
contour-minor-width
contour-number
contour-use-naturals
decoration
depth
dy
error-bar-color
error-bar-line-cap
error-bar-line-color
error-bar-line-style
error-bar-line-width
fill
fill-close-type
fill-color
fill-pattern
fill-transparency
font
frame-cap
frame-color
frame-fill-color
frame-fill-pattern
frame-fill-transparency
frame-padding
frame-radius
frame-shape
frame-style
frame-width
halign
head-angle
head-color
head-marker
head-scale
horizontal-scale
justification
legend
line-cap
line-color
line-style
line-width
loc
location
location-xaxis
location-yaxis
log
major-tick-length
major-tick-width
marker
marker-angle
marker-color
marker-color-map
marker-fill-color
marker-fill-color-map
marker-line-color
marker-line-color-map
marker-line-width
marker-marker
marker-min-scale
marker-scale
minor-tick-length
minor-tick-width
offset
origin
path-style
picto-height
picto-to-text
picto-width
position
radius
region-position
scale
shape
shift
split-on-nan
stroke-color
stroke-width
style
symbol-scale
tail-angle
tail-color
tail-marker
tail-scale
text
text-align
text-scale
text-width
tick-label-alignment
tick-label-angle
tick-label-color
tick-label-halign
tick-label-justification
tick-label-position
tick-label-scale
tick-label-shift
tick-label-text-align
tick-label-text-width
tick-label-valign
ticks-format
ticks-format-last
ticks-labels
ticks-major
ticks-major-delta
ticks-major-number
ticks-major-sep
ticks-minor
ticks-minor-delta
ticks-minor-number
ticks-minor-sep-min
ticks-side
transform
transparency
valign
vertical-scale
vpadding
watermark
watermark-alignment
watermark-angle
watermark-color
watermark-fill-color
watermark-font
watermark-horizontal-scale
watermark-justification
watermark-scale
watermark-stroke-color
watermark-stroke-width
watermark-vertical-scale
width
zaxis
...
define-text-styleSynopsis (file)
define-text-style text /option=...
Synopsis (command-line)
--define-text-style text /option=...
Available options:
alignment
angle
color
halign
justification
position
scale
shift
text-align
text-width
valign
Sets the default style for texts. All text styles descend from the base style. Use a style different than base by passing its name as the /base-style option to the draw-text command.
Meaning of the style parameters:
alignment: vertical alignment justification: horizontal alignment angle: angle in degrees to the horizontal (or default orientation in some cases) color: text color scale: text scale define-title-styleSynopsis (file)
define-title-style text /option=...
Synopsis (command-line)
--define-title-style text /option=...
Available options:
alignment
angle
color
halign
justification
loc
position
scale
shift
text
text-align
text-width
valign
Sets the style for title. All title styles descend from the base style. In addition, the title of a plot is addressed by the style name title.
Meaning of the style parameters:
alignment, justification, angle, color and scale: as in define-text-style text: sets the title text loc: the side on which to display the title, a location shift: the distance away from the plot in text size units (maybe a dimension should be better later) position: shift from the center (parallel to the plot side) load-styleSynopsis (file)
load-style file
Synopsis (command-line)
--load-style file
...
Commands in this group deal with various aspects of the production of output files:
Available commands:
clean cleanup-pdf dependencies eps mark name open output-and-reset output-directory output-now page-size png resolution svg viewer xpdf
cleanSynopsis (file)
clean boolean
Synopsis (command-line)
--clean boolean
When this is on (the default), ctioga2 automatically cleans up intermediate files produced by Tioga. When LaTeX fails, it can be useful to have a closer look at them, so disable it to be able to look into them.
cleanup-pdfSynopsis (file)
cleanup-pdf boolean
Synopsis (command-line)
--cleanup-pdf boolean
If this is on, then ctioga2 uses ghostscript to cleanup the PDF file produced. It is on by default is ctioga2 is able to find the gs executable.
dependenciesSynopsis (file)
dependencies file
Synopsis (command-line)
--dependencies file
Saves the dependencies as a Makefike into the given file name.
epsSynopsis (file)
eps boolean
Synopsis (command-line)
--eps boolean
When this feature is on, all produced PDF files are converted to EPS using the pdftops program (from the xpdf tools suite).
markSynopsis (file)
mark boolean
Synopsis (command-line)
--mark boolean
When this feature is on (which is the default, as it comes in very useful), the 'title' field of the PDF informations is set to the command-line that resulted in the PDF file. Disable it if you don't want any information to leak.
Please note that this will not log the values of the CTIOGA2_PRE and CTIOGA2_POST variables, so you might still get a different output if you make heavy use of those.
nameSynopsis (file)
name figure name
Synopsis (command-line)
-n figure name --name figure name
Sets the name of the figure, which is also the base name for the output file. This has nothing to do with the title of the plot, which can be set using the command title.
If the name contains a %, it is interpreted by ctioga2 as a printf-like format. It will attempt to find the first file that does not exist, feeding it with increasing numbers.
The default value is now Plot-%03d, which means you'll get increasing numbers automatically.
openSynopsis (file)
open
Synopsis (command-line)
--open
Uses open (available on MacOS) to view the PDF files produced by ctioga2.
output-and-resetSynopsis (file)
output-and-reset
Synopsis (command-line)
--output-and-reset
Writes the current figure and starts a fresh one. All non-graphical information are kept (curves loaded, figure names, preamble, and so on).
output-directorySynopsis (file)
output-directory text
Synopsis (command-line)
-O text --output-directory text
Sets the directory to which files will be plot. It defaults to the current directory.
output-nowSynopsis (file)
output-now figure name
Synopsis (command-line)
-o figure name --output figure name
Writes a figure with the given name (see name) and keeps the current state. This can be used to create an animation.
page-sizeSynopsis (file)
page-size text /option=...
Synopsis (command-line)
-r text /option=... --page-size text /option=...
Available options:
count-legend
Sets the size of the output PDF file, in real units. Takes arguments in the form of 12cm x 3in (spaces can be omitted).
pngSynopsis (file)
png resolution /option=...
Synopsis (command-line)
--png resolution /option=...
Available options:
oversampling
pdftoppm
scale
Turns all produced PDF files into PNG images of the given resolution using convert. This also has for effect to set the page-size to the resolution divided by the 'scale' option in Postscript points. By default, 2 pixels are rendered for 1 final to produce a nicely antialiased image. Use the 'oversampling' option to change that, in case the output looks too pixelized. This option only affects conversion time.
resolutionSynopsis (file)
resolution float
Synopsis (command-line)
--resolution float
By default, ctioga2 has a resolution of 1/100th of a postscript point. This is clearly enough for most tasks, but you can increase it should you need, or decrease it to generate possibly a little more jaggy but less large PDF files.
The number given is the number of output points per postscript point.
Better change that at the beginning of the plot.
svgSynopsis (file)
svg boolean
Synopsis (command-line)
--svg boolean
When this feature is on, all produced PDF files are converted to SVG using the neat pdf2svg program.
viewerSynopsis (file)
viewer text
Synopsis (command-line)
--viewer text
Sets the command for viewing the PDF file after ctioga2 has been run.
xpdfSynopsis (file)
xpdf
Synopsis (command-line)
-X --xpdf
Uses xpdf to view the PDF files produced by ctioga2.
If xpdf is not found, then it tries to guess which viewers are available:
ctioga2 -X --xyz-map 3D-data.dat@1:2:4
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xyz-map --margin 0.03 \
ctioga2 -X --xy-parametric --margin 0.03 \
ctioga2 -X --math 'sin(x)' 'cos(x)' -y '$y$ values' \
ctioga2 -X --math 'sin(x)' 'cos(x)' \
ctioga2 -X --math --margin 0.03 \
ctioga2 -X --math --ylog --margin 0.03 \
ctioga2 -X --math 'sin(x)' 'cos(x)' \
ctioga2 -X --math 'sin(x)' --page-size '7cmx12cm'
ctioga2 -X --math 'x**2' --inset 'tl:0.2,0.8:0.4,0.3' \
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
ctioga2 -X --math --region /color Blue /transparency 0.7 \
ctioga2 -X --math --region /color Blue /transparency 0.7 \
ctioga2 -X --math 'sin(x)' 'sin(x+1)' 'sin(x+2)' 'sin(x+3)' \
ctioga2 -X --math --line-style auto 'sin(x)' 'sin(x+1)' --line-style Solid \
ctioga2 -X --math /samples 31 --marker auto 'sin(x)' \
ctioga2 -X --math /samples 31 --marker auto 'sin(x)' \
ctioga2 -X --yrange -1.1:1.1 data.dat@'$1:$2:yerr=$2*0.2'
ctioga2 -X --yrange -1.1:1.1 --line-style no \
ctioga2 -X --math --fill axis 'sin(x)' /fill-color '#fcc'
ctioga2 -X --math --fill axis --fill-transparency 0.6 \
ctioga2 -X --math --gradient Red Blue \
ctioga2 -X --math --color-set 'Red|Blue|Green' \
ctioga2 -X --math /xrange -1:1 /samples 101 'x**2' 'x'
ctioga2 -X --math /xrange -1:1 /samples 31 --marker auto \
ctioga2 -X --math /trange -3.1415:3.1415 /samples 101 'sin(t):cos(t)' \
ctioga2 -X --text-separator , data.csv @1:3
ctioga2 -X data.dat@'$1**2:$3*$2**3'
ctioga2 -X data.dat@1:2 @'$1:$2+1' /where 'x > -1'
ctioga2 -X --marker auto --line-style no \
ctioga2 -X --gnuplot gnuplot.gnu gnuplot.gnu@2 \
ctioga2 -X --smath /samples=100 --xyz-map \
ctioga2 -X data.dat data.dat@1:3
ctioga2 -X data.dat data.dat@1:3 --title 'A nice title'
ctioga2 -X data.dat data.dat@1:3 \
xpdf
xpdf
xpdf
ctioga2 -X --math --legend '$\sin x$' 'sin(x)' \
ctioga2 -X --math --legend-line 'Trigonometric' /color Blue \
-X --math --legend-line 'Trigonometric' /color Blue \
ctioga2 -X --math \
ctioga2 -X --math \
ctioga2 -X --math /xrange -3:3 'sin(3.1415*x)' \
ctioga2 -X --math /xrange -3:3 'sin(3.1415*x)' \
ctioga2 -X --math /xrange -3:3 'sin(3.1415*x)' \
ctioga2 -X --math --setup-grid 2x2 /top 5mm \
Commands for manipulation of the data stack
Available commands:
append apply-formula bin compute-contour dataset-hook dataset-hook-add dataset-hook-clear drop join-datasets load make-contour merge-datasets print-dataset show-stack xy-reglin
appendSynopsis (file)
append dataset /option=...
Synopsis (command-line)
--append dataset /option=...
Available options:
as
ignore-hooks
where
Use the current backend to load the given dataset(s) and append to the last dataset on the stack (without creating a new dataset). Roughly the equivalent of first running load and then join-datasets.
apply-formulaSynopsis (file)
apply-formula text /option=...
Synopsis (command-line)
--apply-formula text /option=...
Applies a formula to the last dataset (or the named one)
binSynopsis (file)
bin /option=...
Synopsis (command-line)
--bin /option=...
Available options:
column
delta
max
min
name
normalize
number
which
This command bins the contents of the Y column of the last dataset on the stack, and pushes the results as a new dataset.
compute-contourSynopsis (file)
compute-contour float /option=...
Synopsis (command-line)
--compute-contour float /option=...
Available options:
which
Computes the contour at the given level for the given dataset (or the last on the stack if none is specified) and pushes it onto the data stack.
You can further manipulate it as usual.
dataset-hookSynopsis (file)
dataset-hook commands
Synopsis (command-line)
--dataset-hook commands
The dataset hook is a series of commands such as those in the command files that are run every time after a dataset is added onto the data stack. Its main use is to provide automatic filtering of data, but any arbitrary command can be used, so enjoy !
dataset-hook-addSynopsis (file)
dataset-hook-add commands
Synopsis (command-line)
--dataset-hook-add commands
Adds the given commands to the dataset hook. See dataset-hook for more information about the dataset hook.
dataset-hook-clearSynopsis (file)
dataset-hook-clear
Synopsis (command-line)
--dataset-hook-clear
Clears the dataset hook. See dataset-hook for more information.
dropSynopsis (file)
drop stored-dataset
Synopsis (command-line)
--drop stored-dataset
Removes the given dataset from the stack.
Can become useful when dealing with large datasets, some of which are only used as intermediates for apply-formula or compute-contour, for instance.
join-datasetsSynopsis (file)
join-datasets /option=...
Synopsis (command-line)
-j /option=... --join-datasets /option=...
Available options:
name
number
which
Pops the last two (or number, if it is specified) datasets from the stack, concatenates them (older last) and push them back onto the stack. The name option can be used to give a name to the new dataset.
loadSynopsis (file)
load dataset /option=...
Synopsis (command-line)
-L dataset /option=... --load dataset /option=...
Available options:
as
ignore-hooks
name
where
Use the current backend to load the given dataset(s) onto the data stack.
If the name option is given, the last dataset loaded this way (if dataset expansion occurs) gets named, or, if it contains a %d (or similar construct), each dataset gets named with %d replace with the number of the dataset within the expansion (starting at 0). This name can be used to further use the dataset without remembering its number. See the type stored-dataset for more information.
make-contourSynopsis (file)
make-contour float /option=...
Synopsis (command-line)
--make-contour float /option=...
Available options:
as
ignore-hooks
name
where
which
merge-datasetsSynopsis (file)
merge-datasets /option=...
Synopsis (command-line)
--merge-datasets /option=...
Available options:
columns
number
precision
which
This commands merges data with matching X values from a dataset (by default the one before the last) into the last one. Data points that have no corresponding X value in the current dataset are simply ignored. If the columns option is provided, the numbered columns are use instead of the X columns (X is 1). More than one column can be provided this way, in which case *all* values must match.
This can be used to build 3D datasets for xyz-map or xy-parametric.
print-datasetSynopsis (file)
print-dataset /option=...
Synopsis (command-line)
-P /option=... --print-dataset /option=...
Prints to standard output data contained in the last dataset pushed onto the stack, or the given stored dataset if the which option is given.
show-stackSynopsis (file)
show-stack
Synopsis (command-line)
--show-stack
Displays the current contents of the dataset stack.
Mostly used for debugging when operations like merge-datasets or join-datasets don't work as expected.
xy-reglinSynopsis (file)
xy-reglin /option=...
Synopsis (command-line)
--xy-reglin /option=...
Available options:
linear
which
...
This command will get documented some day.
Commands displaying information about the internals of ctioga2, such as known types/commands/backends...
Available commands:
edit-command edit-group edit-type list-commands list-groups list-styles list-types version-raw
edit-commandSynopsis (file)
edit-command text /option=...
Synopsis (command-line)
--edit-command text /option=...
Available options:
doc
Edit the given command in an editor. It will only work from the top directory of a ctioga2 source tree.
edit-groupSynopsis (file)
edit-group text
Synopsis (command-line)
--edit-group text
Edit the given group in an editor. It will only work from the top directory of a ctioga2 source tree.
edit-typeSynopsis (file)
edit-type text
Synopsis (command-line)
--edit-type text
Edit the given type in an editor. It will only work from the top directory of a ctioga2 source tree.
list-commandsSynopsis (file)
list-commands /option=...
Synopsis (command-line)
--list-commands /option=...
List all commands known to ctioga2
list-groupsSynopsis (file)
list-groups /option=...
Synopsis (command-line)
--list-groups /option=...
Available options:
raw
List all command groups known to ctioga2
list-stylesSynopsis (file)
list-styles /option=...
Synopsis (command-line)
--list-styles /option=...
Available options:
raw
Lists all available color sets, marker sets and the like.
list-typesSynopsis (file)
list-types /option=...
Synopsis (command-line)
--list-types /option=...
Available options:
raw
List all types known to ctioga2
version-rawSynopsis (file)
version-raw
Synopsis (command-line)
--version-raw
Prints the raw version number, without any other decoration and newline.
The commands in this group act upon the last dataset pushed unto the data stack: they can be viewed as filters.
Available commands:
avg-dup avg-dup-last cherry-pick cherry-pick-last smooth smooth-last sort sort-last trim trim-last
avg-dupSynopsis (file)
avg-dup
Synopsis (command-line)
--avg-dup
Install the avg-dup-last command as a dataset hook (see dataset-hook): all datasets acquired after this is on will be averaged if they have identical successive values of X.
avg-dup-lastSynopsis (file)
avg-dup-last /option=...
Synopsis (command-line)
--avg-dup-last /option=...
Available options:
mode
Averages successive points with identical X values. This algorithm is naive with respect to the min/max values and averages them just as well, whereas one might expect something more clever.
To average over all X values when they are not successive in the dataset, you should use sort-last first.
cherry-pickSynopsis (file)
cherry-pick text
Synopsis (command-line)
--cherry-pick text
Install the cherry-pick-last command as a dataset hook (see dataset-hook): all points for which the formula returns false for subsequent datasets will be removed.
cherry-pick-lastSynopsis (file)
cherry-pick-last text
Synopsis (command-line)
--cherry-pick-last text
Removes the data from the last dataset in the data stack for which the formula returns false.
See also the cherry-pick command to apply the selection to all datasets.
You might find it much easier to use the /where option of the plot or load commands.
smoothSynopsis (file)
smooth integer
Synopsis (command-line)
--smooth integer
Install the smooth-last command as a dataset hook (see dataset-hook): from now on, the datasets are all smoothed
smooth-lastSynopsis (file)
smooth-last integer
Synopsis (command-line)
--smooth-last integer
Smooth the data using a simple (naive even) gaussian filter. Good for producing 'lines to guide the eye'
sortSynopsis (file)
sort
Synopsis (command-line)
--sort
Install the sort-last command as a dataset hook (see dataset-hook): all subsequent datasets will be sorted according to their X values.
sort-lastSynopsis (file)
sort-last
Synopsis (command-line)
--sort-last
Sorts the last dataset pushed unto the stack according to X values. Can be used as a filter.
This command sorts in-place.
See also sort.
trimSynopsis (file)
trim integer
Synopsis (command-line)
--trim integer
Install the trim-last command as a dataset hook (see dataset-hook): all subsequent datasets will be trimmed to keep only every n point.
trim-lastSynopsis (file)
trim-last integer
Synopsis (command-line)
--trim-last integer
Only keeps one every ? data point on the last dataset pushed unto the data stack. Useful when data have too many points to avoid creating heavy PDF files that take ages to display with no additional benefits.
This operation is very crude and does not average data.
See also trim.
General scope commands
Available commands:
command-line-help debug echo eval help-on include pause print-instructions ruby-run set verbose version
command-line-helpSynopsis (file)
command-line-help /option=...
Synopsis (command-line)
-h /option=... --help /option=...
Available options:
pager
Prints helps about short and long options available when run from the command-line.
debugSynopsis (file)
debug
Synopsis (command-line)
--debug
With this on, ctioga2 writes a whole lot of debugging information. You probably will not need that unless you intend to file a bug report or to tackle a problem yourself.
Be warned that it *will* slow down very significantly the processing of ctioga2 (up to hundreds of times slower), especially if you are not redirecting the output to a file.
echoSynopsis (file)
echo
Synopsis (command-line)
--echo
Writes the whole command-line used to standard error, quoted in such a way that it should be usable directly for copy/paste.
evalSynopsis (file)
eval commands
Synopsis (command-line)
-e commands --eval commands
Runs the given strings as commands, as if given from a command file.
help-onSynopsis (file)
help-on text
Synopsis (command-line)
--help-on text
Prints help about the given command
includeSynopsis (file)
include file /option=...
Synopsis (command-line)
-f file /option=... --file file /option=...
Available options:
log
Reads the file and runs commands found in them, using the ctioga language.
ctioga2 -f my_file.ct2
If the /log is on, then all messages are written to a -log.txt file instead of to the terminal.
pauseSynopsis (file)
pause boolean
Synopsis (command-line)
--pause boolean
When this is on, the program will ask for confirmation before finishing, when errors or warnings have been shown. This is especially useful on windows or other environments where the terminal shuts down as soon as ctioga2 has finished.
print-instructionsSynopsis (file)
print-instructions
Synopsis (command-line)
--print-instructions
Writes the list of all the instructions run so far.
This is not very helpful for now, possibly.
ruby-runSynopsis (file)
ruby-run file
Synopsis (command-line)
--ruby-run file
Reads the file and runs the Ruby code found inside, a bit like Ruby would do with the require command, excepted that ctioga2 does not follow Ruby's file searching rules: you have to specify the full path.
setSynopsis (file)
set text text
Synopsis (command-line)
--set text text
Sets the value of the variable (first argument) to the given second argument. No parsing is done.
verboseSynopsis (file)
verbose
Synopsis (command-line)
-v --verbose
With this on, ctioga2 outputs quite a fair amount of informative messages.
versionSynopsis (file)
version
Synopsis (command-line)
-V --version
Prints the version of ctioga in use
Generated for ctioga2 version:
0.14.1