15.70 SWAP

SWAP {X|[N]DX|Y|[N]DY|Z|[N]DZ|U|[N]DU|V|[N]DV|W|[N]DW} [WITH] {X|[N]DX|Y| [N]DY|Z|[N]DZ|U|[N]DU|V|[N]DV|W|[N]DW} [POINTS=[FROM] n1 [TO] [n2]] [SETS=[FROM] n1 [TO] [n2]] [SELECT="name"] [ERROR[=ON|OFF]] This command swaps the data for 2 variables. If ERROR is specified then the corresponding errors are swapped with the data. (Default:ERROR=ON for REVISION>4.99) This is useful if the data is in the wrong location for the type of plot you wish to make. An example of this is making 3-d plots from binned data. You have read in data, X,Y,DY and you have binned it into a frequency distribution using the BIN command. Now the result is in X,Y,DX,DY. You wish to make a 3-d histogram, but the data must be in X,Z,DX,DZ. To fix the problem: TD:SWAP Z WITH Y TD:SWAP DZ WITH DY Now you can set the Y value and perform the histogram. TD:Y=10.0 TD:SET THREE ON TD:HISTOGRAM You may copy data using the X,Y,Z,DX,... commands.