How to create contour plot within a 2D plot
2 次查看(过去 30 天)
显示 更早的评论
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).
Cheers,
Soheil
0 个评论
回答(1 个)
Abdolkarim Mohammadi
2020-8-15
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
plot(...);
scatter(...);
contour(...);
hold off
4 个评论
Walter Roberson
2020-8-17
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!