Contour lines over contourf 2D matrix
조회 수: 4 (최근 30일)
이전 댓글 표시
I would like to plot thick lines where y = n as a contour line on top of a contourf plot (like the image attached). How can I do this?
I have 3 Matrices I use to contourf: xi,yi,zi - all same dimensions (200x100). I want to use zi data to create the superimposed contours. I do not wish to set the levels within contourf as this is not useful for what I wish to do. I would like to control the contours completely seperate.
For an extra bonus point, it will be nice to have corresponding labels.
댓글 수: 0
채택된 답변
Star Strider
2016년 5월 14일
Use the hold function, and plot only the lines of interest using a second call to the contour (not contourf) function.
댓글 수: 2
Star Strider
2016년 5월 15일
My pleasure!
Not stupid — just an experiment that didn’t work out as you wanted. That’s how we learn!
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!