[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/plotxy]

bar

(/tools/hpmatlab/toolbox/matlab/plotxy/bar.m)


Function Synopsis

[xo,yo] = bar(x,y,c)

Help text

BAR	Bar graph.
	BAR(Y) draws a bar graph of the elements of vector Y.
	BAR(X,Y) draws a bar graph of the elements of vector Y at
	the locations specified in vector X.  The X-values must
	be in ascending order.  If the X-values are not evenly spaced, the
	interval chosen is not symmetric about each data point.  Instead,
	the bars are drawn midway between adjacent X-values.  The endpoints
	simply adopt the internal intervals for the external ones needed.

	If X and Y are matrices the same size, one bar graph per column 
	is drawn.

	[XX,YY] = BAR(X,Y) does not draw a graph, but returns vectors
	X and Y such that PLOT(XX,YY) is the bar chart.

	See also STAIRS, HIST.

	BAR(X,'linetype') or BAR(X,Y,'linetype') uses the plot linetype
	specified.  See PLOT for details.

Cross-Reference Information

This function calls
This function is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON