Creating a waterfall plot
8 次查看(过去 30 天)
显示 更早的评论
I have data in a 2d plot, but I want to display it as a "waterfall" with the first value x(0),y(0) at the top, and x(i),y(i) at the bottom. You can visualize just flipping the plot over the x axis. This can be simply done by inverting the y data, but then on the plot, I have negative y values when in reality, they are positive. Is there any way to "flip" the plot?
1 个评论
Veronica yep
2017-6-27
can you post the code for creating this 2d waterfall please? if you still have it
采纳的回答
Sean de Wolski
2013-2-19
flipud() or fliplr() ?
doc fliplr
doc flipud
3 个评论
Sean de Wolski
2013-2-19
What about just changing the 'XDir' of the axes to 'reverse' so that it's flipped?
plot(whatever);
set(gca,'XDir','reverse');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!