Dear All, I have two set of data column x and y. I have plotted plot (x,y). y is oscillatory. I want to shade the area above and below x axis with different colors like shown in image. Can anyone please help me. I have attached the data in excel she

2 次查看(过去 30 天)
Two columns of data x and y, importing and polt them. Y is oscilatory, so i want to fill the graph with different colors such that above x axis one color and below x axis, another color.

采纳的回答

Stephen23
Stephen23 2019-1-8
Use area. You might need to plot the data twice to get the effect you want.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by