Plots¶
The plot pad builds a plot{} figure: a coordinate system,
points, curves of functions and broken lines. Each field of the form is one
part of the atmxg string, shown below the preview. The pad speaks French;
its labels are quoted here as they read.
Printing¶
Facteur d'échelle, the first field of the page, sets the size the figure is
printed at: one cell is 1 cm times this factor. A printer often enlarges or
shrinks a little what it prints; the factor makes up for it, found by trying —
1.053 for a printer that prints a cell 0.95 cm wide. It is 1 by default,
and kept by the browser for every pad: it belongs to the printer, not to a
figure, so it is not part of the page's address.
Taille du texte (pt) sets the size of the values written along the axes
and of the names, on paper. Empty, automath sizes them — some 20 pt at one
cell for 1 cm. Given, it sets cell_size_ratio, the side of a cell in font
sizes (12 writes cell_size_ratio=1.6535); where the written values would
then touch, automath widens the cells all the same, and the text comes out
smaller.
The size the figure takes on paper, and its text, are shown under the preview.
Coordinate system¶
| Field | Option |
|---|---|
| x min, x max, y min, y max | x_min, x_max, y_min, y_max — -4 and 4 by default, then left out of the string |
| Un carreau en x / y vaut | x_scale, y_scale — written only when it is not 1 |
| Légende de l'axe des abscisses / des ordonnées | x_title, y_title |
| Grille | grid=false when unticked: no grid, nor sub-grid |
| Noms des points, Croix des points | point_names=false, point_marks=false when unticked |
| Noms des courbes (Cf) | curve_names=true when ticked |
| Valeurs écrites | show_graduations |
| Écrites tous les (x / y) | x_labels_step, y_labels_step — empty: chosen by automath |
| Abscisses / Ordonnées en heures | x_hours=true, y_hours=true — the step of the values written is then greyed: every hour |
| Subdivisions (x / y) | x_subdivisions, y_subdivisions (subdivisions when both agree) |
| Marquer les graduations sans valeur | subdivision_marks=true: a shorter tick at every graduation where no value is written — the subdivisions, those a step of the written values skips; of use without the grid |
| Couleur des axes, de la grille | color, grid_color |
| Autres options plot{} | any other option, written as it is typed, last: font_size=1.2 ; cell_size_ratio=0.8 |
An axis in hours is set in minutes — its bounds, the value of a cell (10
for one cell = 10 min), the coordinates of the points — and writes whole hours
only, 1, 2, 3: put the unit in its title, durée (h). See
Durations, in hours.
The graduation is set by the value of a cell rather than by the decimals of the bounds: the bounds must be multiples of it, and the origin must lie between them. An axis holds 100 cells at most.
Numbers may be typed with a comma or a dot.
A new point, curve or line is given the colour last chosen for one of its kind: a figure is seldom drawn in more than two or three colours.
Points¶
A point has a name, two coordinates and a colour. An empty name gives a point
without one (_). A name holds no space, nor any of : ; | - ( ) [ ] { } < > & ",
and two points may not share it. A new point is offered the first free capital
letter.
Curves¶
A curve has a letter, and one or more pieces, each with its expression and
its colour. An expression is typed as in an answer box: 2x+1, x^2-3,
(x+1)(x-2), 1/x, 0,5x.
A piece is drawn across the whole grid, unless it is given an interval. Either
bound may be left empty, for -inf or +inf; each bracket says whether its
bound is included. + Morceau defines the same function otherwise over another
interval: every piece of a function in pieces has an interval, and those
intervals must not overlap.
Broken lines¶
A line joins two vertices or more, in order. A vertex is the name of a point
of the figure, offered as it is typed, or coordinates, (1; 2). Fermer la
ligne joins the last vertex back to the first.
A vertex naming a point follows it: renaming the point renames it in every line. A point removed leaves its name in the lines, marked in error, to be replaced.
Output¶
Anything the form cannot turn into a valid string is marked in red beside the
field at fault; what automathd refuses is shown under the preview.
- Télécharger le SVG saves
graphique.svg, sized in centimetres (see Printing), so that a word processor or a drawing program reads it as it stands. Inserted at 100 %, its cells measure 1 cm times the factor. - Copier le SVG puts the same file on the clipboard.
- Embarquer les polices (ticked by default) writes the fonts the figure uses into the file, so that it shows the same where they are not installed. It weighs some 30 to 70 kB more.
- Copier, under the atmxg string, puts the string on the clipboard, ready
for a script, a slide or
automath render svg; Télécharger (.atmxg) saves it asgraphique.atmxg.
Importing a figure¶
Importer un .atmxg… brings a figure saved before back into the form, to
change it. Only a file holding one plot{}, and nothing else, that automathd
draws, is taken.
The form may write the figure a little differently, the figure staying the
same: the graduation the decimals of the bounds give becomes the value of a
cell (x_min=-1.0 becomes x_min=-1 ; x_scale=0.1), and a closed line is
ticked Fermer la ligne. What the form has no field for is said under the
preview:
- a colour other than
#rrggbb(red) gives way to the default colour; - an option without a field —
font_size,cell_size, a list of names given topoint_names… — is kept in Autres options plot{}, as written.
The figure is drawn in the French locale: decimal comma, true minus sign.