barchart (bar)
Creates a bar chart representation of selected data.
Syntax
barchart(vector, scalar1, 1|2, [on|off])
Arguments
- vector
- A vector containing the data to be displayed in bar chart format.
- scalar1
- The width of the bars.
- 1/2
- Return type flag:
- 0|1
- Flag to turn on debug mode and print to the message log (optional).
Example
y = barchart({7,2,3,1,1,1,5,6}, 10, 1)
Comments
A bar chart displays the magnitude of the values contained in the given vector.
For example, V2 = {7,2,3,1,1,1,5,6} indicates eight bars in the plot (each of equal width). The first bar is 7 units tall, the second bar is 2 units tall, and so on.
In Templex, you must register this function, {registerexternalfunction("bar", "path")}