No FaceAlpha property for area plot

조회 수: 3 (최근 30일)
Elaheh Soltanaghaei
Elaheh Soltanaghaei 2016년 3월 11일
댓글: Star Strider 2016년 3월 11일
Hi, I would like to draw two area graphs in one plot to overlay each other and have transparent colors. but the area plot library in my Matlab 2014b doesn't have faceAlpha properties.

채택된 답변

Star Strider
Star Strider 2016년 3월 11일
I would use the patch function instead. According to the R2014b documentation for Patch Properties, the patch function does have a 'FaceAlpha' option in the name-value pairs. I will help if you need to re-write your code to make it work with patch.
  댓글 수: 4
Elaheh Soltanaghaei
Elaheh Soltanaghaei 2016년 3월 11일
Great. It finally works. Thank you very much for your helps :-)
Star Strider
Star Strider 2016년 3월 11일
My pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Mike Garrity
Mike Garrity 2016년 3월 11일
FaceAlpha was added to area in R2015b. So if you upgrade to either that or R2016a, you can do this:
area(rand(1,10),'FaceAlpha',.5)

카테고리

Help CenterFile Exchange에서 Polygons에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by