How to plot stacked variables with common x-axis?

2 次查看(过去 30 天)
Hello everyone,
I am trying to produce a figure similar to the one attached. As you can see, for each Y, there is a function of Z, f(Z). The x-axis (or Z in the figure below) is common among all functions. The third axis, i.e., f(Z), is kind of hidden. I am aware of stackedplot, which produces a very similar visualization, but not exactly the one I'm after. Do you have other suggestions?

采纳的回答

Bjorn Gustavsson
Bjorn Gustavsson 2021-7-7
Another option is the multiwaveplot function from the file exchange: stacked-line-plot.
HTH

更多回答(1 个)

KSSV
KSSV 2021-7-7
Generate all the curves, make them a matrix and use waterfall.
  1 个评论
Yazan
Yazan 2021-7-8
Already tried waterfall and similar Matlab functions. They don't produce exactly the visualization I'm after. The function stackedplot seems to be the closest to what I need. Thanks!

请先登录,再进行评论。

类别

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

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by