Bars! Bars! Bars!
Make bar charts rammed full of extra features:
- in full technicolor, with a unique colour for every bar if that's what you're into
- showing errors on the values using errorbars, with many styles available
- with statistical significance of each bar indicated with stars above them
- with statistical significance of comparisons between pairs of bars shown with lines between the pairs and stars above them
- and all this in either horizontal or vertical orientations
Have no fear. Superbar is here!
And that's not all! It comes with a free copy of SUPERERR, which you can use to plot error bars not on bar charts. Plot errors in both X and Y with lots of style options for capped, uncapped, one-directional, symmetric, asymmetric errorbars. It can do everything you want, just as long as what you want is to plot errorbars on a set of linear-linear axes!
If you want to help make SUPERBAR even more super, you can report bugs and suggest new features on GitHub:
Tested in R2011a (Windows) and R2016a (Windows & Ubuntu).
Scott Lowe (2022). superbar (https://github.com/scottclowe/superbar), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: HERRORBAR, errorbarxy, Enhancement to errorbar() plot, xyerrorbar, BarsWithError, errorbarlog.m, barerrorbar(varargin), plot errorbars on both axes, errorbarlogx.m, barweb (BARgraph With Error Bars), errorbarlogy, errorbar_x, ploterr, Adjust error bar width, bar3color(varargin), Bar- and candle style graph for stocks, Enhanced Errorbar Function, Bar with errorbars, raacampbell/shadedErrorBar, Create Healthy Looking Error Bars, set errorbar width and thickness, Coloured bar chart, barwitherr(errors,varargin), Faded bar chart, 3D Bar Plot with Error Bars, bar_setFaceAlpha, Update error bar widths automatically on figure resize, xerrorbar - Just like errorbar, but for uncertainty in x., MATLAB Plot Gallery - Vertical Bar Plot, MATLAB Plot Gallery - Stacked Bar Chart, MATLAB Plot Gallery - Horizontal Bar Plot, MATLAB Plot Gallery - Errorbar Plot, Plot data with error bars on both x and y axes, hbarerrorbar, pierremegevand/errorbar_groups, errbar, terrorbar.m: Error bars with controlled widths post-R2014b, K_shadedErrorBar(), errorbarxy, orxy(x,y,limx,limy,errx,erry,col,factor), plotyyyerrxy, linebar
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!