plot nice healthy error bars
nan_errorbr(Y,E) nan_errorb(X,Y,E) nan_errorb(X,Y,'Parameter','Value',...)
will plot the error bars horizontally rather than vertically
plot only the top half of the error bars (or right half for horizontal)
the width of the little hats on the bars (default scales with the data!)
the width of the lines the bars are made of (default is 2)
will plot the points as well, in the same colors.
specify a particular color for all the bars to be (default is black, this can be anything like 'blue' or [.5 .5 .5])
will plot all the bars a different color (thanks to my linespecer function)
in the case that multicolor is specified, one
It is possible to plot nice error bars on top of a bar plot . This function plots what I would consider to be nice error bars as the default, with no modifications necessary. It also plots, only the error bars, and in black.
nan_errorbar(Y,E) plots Y and draws an error bar at each element of Y. The error bar is a distance of E(i) above and below the curve so that each bar is symmetric and 2*E(i) long. If Y and E are a matrices, errob groups the bars produced by the elements in each row and plots the error bars in their appropriate place above the bars.
nan_errorbar(X,Y,E) plots Y versus X with symmetric error bars 2*E(i) long. X, Y, E must be the same size. When they are vectors, each error bar is a distance of E(i) above and below the point defined by (X(i),Y(i)).