INCLAN Graphics: plot rectangle: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
Line 1: | Line 1: | ||
== Synopsis == | |||
'''plot rectangle''' ''x''<sub>1</sub> ''y''<sub>1</sub> ''x''<sub>2</sub> ''y''<sub>2</sub> | |||
== Description == | |||
This command can also be used in list mode, where | |||
are four vector expressions. In list mode, the command can also be | Draws a rectangle with corners (''x''<sub>1</sub>, ''y''<sub>1</sub>), (''x''<sub>1</sub>, ''y''<sub>2</sub>), (''x''<sub>2</sub>, ''y''<sub>1</sub>), and (''x''<sub>2</sub>, ''y''<sub>2</sub>). This command can also be used in list mode, where ''x''<sub>1</sub>, ''y''<sub>1</sub>, ''x''<sub>2</sub> and ''y''<sub>2</sub> are four vector expressions. In list mode, the command can also be used without parameters. In this case a rectangle with corners ((''x''<sub>''i''-1</sub>+''x''<sub>''i''</sub>)/2,0), ((''x''<sub>''i''</sub>+''x''<sub>''i''+1</sub>)/2,0), ((''x''<sub>''i''-1</sub>+''x''<sub>''i''</sub>)/2,''y''<sub>''i''</sub>) and ((''x''<sub>''i''</sub>+''x''<sub>''i''+1</sub>/2,''y''<sub>''i''</sub>), i.e. a histogram bar, is drawn for each point (''x''<sub>''i''</sub>,''y''<sub>''i''</sub>) in the list columns (for the first and last point, ''x''<sub>''i''-1</sub> and ''x''<sub>''i''+1</sub> are replaced by the minimal and maximal ''x''-values, ''X''<sub>0</sub> and ''X''<sub>1</sub> respectively). | ||
used without parameters. In this case a histogram bar, is drawn for | |||
each point in the list columns. |
Latest revision as of 16:20, 17 August 2009
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).