How to use non-symmetric linewidth on a plot
Show older comments
Say I have the following:
upperbound = .001"
lowerbound = .003"
xdata = 1:.1:10
ydata = f(xdata)
I would like to plot(xdata,ydata) with a linewidth that is not symmetric. More specifically, I would like to have a shaded 'tube' with a maximum values of ydata + upperbound, and minimum values of ydata - lowerbound.
I've attached a picture to help explain what I'm trying to do. The only thing I would add is that I would like to have the space between the upper and lower bound shaded in.
Accepted Answer
More Answers (0)
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!