MATLAB: How to use bar plot without outlines

barslineoutlineplotrectanglewidth

I don't want to make the outlines invisible, but I want the width to be zero, however the description says that LineWidth has to be positive. So what is the perfect solution? I want filled rectangles/bars touch each other.

Best Answer

Either EdgeColor or LineStyle. You might also want to set BarWidth:
bar(rand(1,10),'EdgeColor','none','BarWidth',1)
Related Question