INCLAN Graphics: plot rectangle

From CYANA Wiki
Jump to navigation Jump to search

Synopsis

plot rectangle x1 y1 x2 y2

Description

Draws a rectangle with corners (x1, y1), (x1, y2), (x2, y1), and (x2, y2). This command can also be used in list mode, where x1, y1, x2 and y2 are four vector expressions. In list mode, the command can also be used without parameters. In this case a rectangle with corners ((xi-1+xi)/2,0), ((xi+xi+1)/2,0), ((xi-1+xi)/2,yi) and ((xi+xi+1/2,yi), i.e. a histogram bar, is drawn for each point (xi,yi) in the list columns (for the first and last point, xi-1 and xi+1 are replaced by the minimal and maximal x-values, X0 and X1 respectively).