function errorbarxd(x, m, e, varargin)

w = (x(1)-x(2))/9;

plot([x; x], [m-e; m+e], varargin{:});
hold on
plot([x-w; x+w], [m-e; m-e], varargin{:});
plot([x-w; x+w], [m+e; m+e], varargin{:});

end