Bar chart with error bars?

Henry F. Mollet mollet at pacbell.net
Wed Jul 16 13:38:27 CDT 2008


octave-3.0.1:4> help -i bar
warning: please use `doc' instead of `help -i'

     form is

          errorbar (Y, EY)

     where the first argument is taken as the set of Y coordinates and
     the second argument EY is taken as the errors of the Y values. X
     coordinates are taken to be the indices of the elements, starting
     with 1.

     If more than two arguments are given, they are interpreted as

          errorbar (X, Y, ..., FMT, ...)

     where after X and Y there can be up to four error parameters such
     as EY, EX, LY, UY etc., depending on the plot type. Any number of
     argument sets may appear, as long as they are separated with a
     format string FMT.

     If Y is a matrix, X and error parameters must also be matrices
     having same dimensions. The columns of Y are plotted versus the
     corresponding columns of X and errorbars are drawn from the
     corresponding columns of error parameters.

     If FMT is missing, yerrorbars ("~") plot style is assumed.

     If the FMT argument is supplied, it is interpreted as in normal
     plots. In addition the following plot styles are supported by
     errorbar:

Above might be starting point to get errorbars with a bar chart.
Henry


on 7/16/08 1:31 AM, Wolfgang Schechinger at hubahopp at gmx.de wrote:

> Dear experts, 
> 
> I would like to generate a series of bar charts with error bars upon the
> columns. Anyone wanting to share some example code or give me hints how to get
> the error bars on the bars?
> 
> Many thanks!
> 
> Wolfgang




More information about the Help-octave mailing list