Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

barhoriz (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: plots

Requires: MathScript RT Module

Syntax

barhoriz(y)

barhoriz(y, width)

barhoriz(y, style)

barhoriz(y, color)

barhoriz(x, y)

barhoriz(x, y, width)

barhoriz(x, y, style)

barhoriz(x, y, color)

barhoriz(y, width, style, color)

barhoriz(x, y, width, style, color)

Legacy Name: barh

Description

Generates a plot of horizontal bars.

Details

Examples

Inputs

Name Description
x Specifies the x-coordinates of the bars you want to plot. x is a vector. length(x) must equal length(y).
y Specifies the heights of the bars you want to plot. y is a vector or matrix.
width Specifies the width of the bars you want to plot.
style Specifies the plot style. style is a string that accepts the following values.

'group' (default) If y is a matrix, barhoriz plots each row of y as a group of bars. The number of bars in each group equals the number of columns in y.
'stack' If y is a matrix, barhoriz plots each row of y as one stacked bar.
color Specifies a valid color attribute for the plot. color is a string that accepts the following values.

'b' Blue
'c' Cyan
'g' Green
'k' Black
'm' Magenta
'r' Red
'w' White
'y' Yellow

Details

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

Examples

y = rand(10, 2);
barhoriz(y);

Related Topics

bar
bar3d
bar3dhoriz


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit