How to create contour plot within a 2D plot

2 views (last 30 days)
soheil radfar
soheil radfar on 15 Aug 2020
Commented: Walter Roberson on 17 Aug 2020
Hi all,
I have to create such a plot but I have no idea how to do it. Can anyone guide me?
I know the equation for mean overtopping discharge and my question is how to draw the colored area (contour).

Answers (1)

Abdolkarim Mohammadi
Abdolkarim Mohammadi on 15 Aug 2020
When you want to draw multiple plots within one axes, you should put all of the commands between hold on and hold off.
hold on
hold off
Walter Roberson
Walter Roberson on 17 Aug 2020
use plot3 for the lines and give a z coordinate that is greater than 0. When you use contourf() the patches it draws are all at z=0

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!