pierremegevand/errorbar_groups
At its most basic, this function produces bar plots similar to those obtained using MATLAB's BAR(Y,'grouped') function call, and then overlays error bars onto the corresponding bars.
ERRORBAR_GROUPS allows customizing the plot in several ways. For instance, both the width of the bars themselves and that of the error bars can be adjusted. The function allows asymmetric values for the lower and upper bounds of the error bars. The colors of the bars and error bars can also be customized. ERRORBAR_GROUPS allows transmitting optional input property-value pairs to both the BAR and ERRORBAR functions, making it quite versatile.
Cite As
Pierre Mégevand (2022). pierremegevand/errorbar_groups (https://github.com/pierremegevand/errorbar_groups), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots >
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots > Errorbars >
Tags
Acknowledgements
Inspired by: barweb (BARgraph With Error Bars), Adjust error bar width, Create Healthy Looking Error Bars
Inspired: superbar
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.