Gri Commands

1: Introduction
2: Simple example
3: Fancy example
4: Running Gri
5: Programming Gri
6: General Issues
7: X-Y Plots
8: Contour Plots
9: Image Plots
10: Examples
11: Handling Data
12: Gri Commands
13: Gri Extras
14: Evolution of Gri
15: Installing Gri
16: Gri Bugs
17: System Tools
18: Acknowledgments
19: License
20: Newsgroup

21: Concept Index

12.35: The `reorder' Command

`reorder columns randomly \
  |{ascending in x|y|z} \
  |{descending in x|y|z}'

Reorder the columns in various ways.

In the `randomly' style, the column data are shuffled randomly by index, retaining the correspondance between a given x and y. This is useful with `draw symbol' using colored dots -- it prevents the overpainting of one dot on another from biasing the color field to values that happened to occur near the end of the column data. If you prefer the overpainting to be done in random order, use this command to reorder the columns randomly. The random number is selected using the system `rand' call, with the seed being provided by the PID (process ID) of the job.

The `ascending' and `descending' styles do what you'd expect.