File Exchange

image thumbnail


version (1.83 KB) by Marcin Konowalczyk
Lightweight implementation of shaded error-bar plot


Updated 15 Jan 2018

View License

This function creates a shaded error-bar plot. It is a lightweight implementation of 'shadedErrorBar' by Rob Campbell intended to be used as a local function in other scripts. It reduces the functionality to a bare minimum in order to fit the entire script into (effectively) 11 lines of code.

Cite As

Marcin Konowalczyk (2020). shplot (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

How do I change facealpha in the code???


Nice and simple, for tranparancy 'facealpha' must be changed manually in the code though.


bugfix in the `semilogx` and `semilogy` wrappers

added wrappers for matlabs `loglog`, `semilogx`, and `semilogy` functions

bugfix on line 20 ( abs(e) -> abs(e(:))

chnaged the title back to 'shplot'

added varargout functionality so that the function doesn't spam the console when used without the `H` output

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: raacampbell/shadedErrorBar