Colormap for area graphic

Hi everyone. I have area and line graphics in one window
[ax,h1,h2] = plotyy(x, y1, x, y2, @area, @line);
How to set colormap for the area graphic to get green color if area>0 and red if area<=0?

답변 (0개)

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

질문:

2012년 12월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by