# 1 Command reference

This chapter contains an alphabetically ordered list of all of Pyxplot’s commands. The syntax of each is specified in a variant of Backus-Naur notation, in which angle brackets `<>` are used to indicate replaceable tokens, parentheses `()` are used to indicate mutually-exclusive options which are separated by vertical lines `|`, square brackets `[]` are used to indicate optional items, and braces `{}` are used to indicate items which may be repeated. Dots `...` are used to indicate arbitrary strings of text.

Replaceable tokens labelled `<length>` may be specified either as a number with physical dimensions of length, e.g. `2*unit(m)`, or as a dimensionless number taken as a number of centimeters. Replaceable tokens labelled `<angle>` may be specified either with physical dimensions of angle, e.g. `0.25*unit(rev)`, or as a dimensionless number of degrees, e.g. `90`.

Replaceable tokens labelled `<vector>` represent a physical position on the vector-graphics canvas, and can be specified either as two comma-separated co-ordinates, or as a two-component vector. In either case, the co-ordinates may either have physical demensions of length, or be a dimensionless number of centimeters.

Replaceable tokens labelled `<graph_vector>` are similar, but represent a position on a graph. They may be specified either as comma-separated co-ordinates, or as a vector object. In either case, there may be either two or three components, although the third component will be ignored except on three-dimensional plots. The components should share the physical units of the axes they are plotted against.

In flow control commands, tokens labelled `<code>` should be replaced by a series of Pyxplot commands enclosed by braces `{}`. The closing brace must be placed on a new line.

Where braces `{}` are used to indicate items which may be repeated, commas or semicolons are often used to separate items. This is specified in the text below the syntax specification.

Where keywords differ between US and British English, both variants are accepted. For example, `color` may be spelt `colour`, `gray` may be spelt `grey`, etc.

- 1.1 ?
- 1.2 !
- 1.3 arc
- 1.4 arrow
- 1.5 assert
- 1.6 box
- 1.7 break
- 1.8 call
- 1.9 cd
- 1.10 circle
- 1.11 clear
- 1.12 continue
- 1.13 delete
- 1.14 do
- 1.15 ellipse
- 1.16 else
- 1.17 eps
- 1.18 exec
- 1.19 exit
- 1.20 fft
- 1.21 fit
- 1.22 for
- 1.23 foreach
- 1.24 foreach datum
- 1.25 global
- 1.26 help
- 1.27 histogram
- 1.28 history
- 1.29 if
- 1.30 ifft
- 1.31 image
- 1.32 interpolate
- 1.33 jpeg
- 1.34 let
- 1.35 list
- 1.36 load
- 1.37 local
- 1.38 maximize
- 1.39 minimize
- 1.40 move
- 1.41 piechart
- 1.42 plot
  - 1.42.1 axes
  - 1.42.2 label
  - 1.42.3 title
  - 1.42.4 with
- 1.43 point
- 1.44 print
- 1.45 pwd
- 1.46 quit
- 1.47 rectangle
- 1.48 refresh
- 1.49 replot
- 1.50 reset
- 1.51 save
- 1.52 set
  - 1.52.1 arrow
  - 1.52.2 autoscale
  - 1.52.3 axescolor
  - 1.52.4 axis
  - 1.52.5 axisunitstyle
  - 1.52.6 backup
  - 1.52.7 bar
  - 1.52.8 binorigin
  - 1.52.9 binwidth
  - 1.52.10 boxfrom
  - 1.52.11 boxwidth
  - 1.52.12 c1format
  - 1.52.13 c1label
  - 1.52.14 calendar
  - 1.52.15 clip
  - 1.52.16 colorkey
  - 1.52.17 colormap
  - 1.52.18 contours
  - 1.52.19 cnrange
  - 1.52.20 data style
  - 1.52.21 display
  - 1.52.22 filter
  - 1.52.23 fontsize
  - 1.52.24 function style
  - 1.52.25 grid
  - 1.52.26 gridmajcolor
  - 1.52.27 gridmincolor
  - 1.52.28 key
  - 1.52.29 keycolumns
  - 1.52.30 label
  - 1.52.31 linewidth
  - 1.52.32 logscale
  - 1.52.33 multiplot
  - 1.52.34 mxtics
  - 1.52.35 mytics
  - 1.52.36 mztics
  - 1.52.37 noarrow
  - 1.52.38 noaxis
  - 1.52.39 nobackup
  - 1.52.40 noclip
  - 1.52.41 nocolorkey
  - 1.52.42 nodisplay
  - 1.52.43 nogrid
  - 1.52.44 nokey
  - 1.52.45 nolabel
  - 1.52.46 nologscale
  - 1.52.47 nomultiplot
  - 1.52.48 nostyle
  - 1.52.49 notitle
  - 1.52.50 noxtics
  - 1.52.51 noytics
  - 1.52.52 noztics
  - 1.52.53 numerics
  - 1.52.54 origin
  - 1.52.55 output
  - 1.52.56 palette
  - 1.52.57 papersize
  - 1.52.58 pointlinewidth
  - 1.52.59 pointsize
  - 1.52.60 preamble
  - 1.52.61 samples
  - 1.52.62 seed
  - 1.52.63 size
  - 1.52.64 style
  - 1.52.65 style data | style function
  - 1.52.66 terminal
  - 1.52.67 textcolor
  - 1.52.68 texthalign
  - 1.52.69 textvalign
  - 1.52.70 timezone
  - 1.52.71 title
  - 1.52.72 trange
  - 1.52.73 unit
  - 1.52.74 urange
  - 1.52.75 view
  - 1.52.76 viewer
  - 1.52.77 vrange
  - 1.52.78 width
  - 1.52.79 xformat
  - 1.52.80 xlabel
  - 1.52.81 xrange
  - 1.52.82 xtics
  - 1.52.83 yformat
  - 1.52.84 ylabel
  - 1.52.85 yrange
  - 1.52.86 ytics
  - 1.52.87 zformat
  - 1.52.88 zlabel
  - 1.52.89 zrange
  - 1.52.90 ztics
- 1.53 show
- 1.54 solve
- 1.55 spline
- 1.56 swap
- 1.57 tabulate
- 1.58 text
- 1.59 undelete
- 1.60 unset
- 1.61 while