bar graph function from mathworks file exchange
publishfig for fixing up plots