How can I adjust the width of the error bars on a plot that I have already made? I found a few downloadable functions that claim to solve this problem, but I can not use them for plots (.fig files) that I have already made. Since I can't re make all of my plots (that would take days) is there any way that I can change the error bar width at this point?
O.k., here is an example:
X = 0:pi/10:pi; Y = sin(X); E = std(Y)*ones(size(X)); B = errorbar(X,Y,E) ; pause(1) C = get(B,'children'); X = get(C(2),'xdata'); X2 = reshape(X,9,); X2([4 7],:) = X2([4 7],:)-.2; X2([5 8],:) = X2([5 8],:)+.2; set(C(2),'xdata',X2(:).')
So for your problem just use FINDALL to get the handle to the errorbar hggroup then run the code I show on that handle. You could even set it up to open each figure one by one and do it by using DIR or WHAT.