## Macro Command Reference

`calc <TARGET> <expr> <BUFFER>`

Performs a calculation on the data in the buffers.
`<expr>`: Expression which defines the calculation.

`TARGET`

this is the target axis for an operation. Possible values:

`1, x` | X values
`2, y` | Y values
`3, xe` | X error values
`4, ye` | Y error values

`BUFFER`

a list of one or more data buffers. Possible values are:

`all` | all buffers in the document
`selected` | selected buffers in the document
`unselected` | unselected buffers in the document
`visible` | visible buffers in the document
`hidden` | hidden buffers in the document
`none` | no buffer
`b1,b2,b3,...,bn` | a list of buffers where the arguments may be math expressions.
`bs..be` | buffers from bs to be