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!