No FaceAlpha property for area plot

3 Ansichten (letzte 30 Tage)
Elaheh Soltanaghaei
Elaheh Soltanaghaei am 11 Mär. 2016
Kommentiert: Star Strider am 11 Mär. 2016
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.

Akzeptierte Antwort

Star Strider
Star Strider am 11 Mär. 2016
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 Kommentare
Elaheh Soltanaghaei
Elaheh Soltanaghaei am 11 Mär. 2016
Great. It finally works. Thank you very much for your helps :-)
Star Strider
Star Strider am 11 Mär. 2016
My pleasure!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Mike Garrity
Mike Garrity am 11 Mär. 2016
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)

Community Treasure Hunt

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

Start Hunting!

Translated by