Fill area between plot and the 0-line?
이전 댓글 표시
Hi,
I want to plot some data to show a difference to a reference value and i want that the curve above zero gets filled red and the area of the plot below zero gets filled with blue.
How do i do that?
채택된 답변
추가 답변 (2개)
the cyclist
2020년 5월 31일
0 개 추천
댓글 수: 3
Julozert
2020년 5월 31일
the cyclist
2020년 5월 31일
The way I would do it is to use your data points to define polygons that are above zero, and polygons that are below zero, and then use patch or fill, to fill them in.
Julozert
2020년 5월 31일
Image Analyst
2020년 6월 1일
0 개 추천
For a more general situation, see the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_shade_the_region_between_two_curves.3F
카테고리
도움말 센터 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
