File Exchange

image thumbnail

Shaded Error Bar YY

version (1.5 KB) by Ben Dichter
Makes two shadedErrorBars on a two-sided axes


Updated 11 Jul 2013

View License

shadedErrorBaryy is a wrapper for the popular File Exchange function shadedErrorBar, It allows you to put two of these beautiful objects on two y-scales using the plotyy format. This is a bit of a hack and requires shadedErrorBar to already be in your path. The output, ax, is a vector containing the left and right axes handles, which can be used to label the plot, etc.

When generating this figure on macs (and possibly linux) you may experience problems with the left y-axis. This is not an issue with the code but with matlab's renderer. OpenGL with transparency tends to cause this bug. The figure will be correct if you export it using plot2svg

Cite As

Ben Dichter (2020). Shaded Error Bar YY (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Ame ZL

Hi Ben, i'm having the problem you described when using shadedErrorBar.m , but i'm not quite sure how to use your function, as i don't understand what's c1 and c2? it seems it must be a string for an optional argument of shadedErrorBar, but then you give it the value of 1, ? . Does this function really works? thanks


bug fix

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

Inspired by: raacampbell/shadedErrorBar

Inspired: errorshade