Area plot does not recognize colormap

When I changed to R2019a, area plots do not recognize the current colormap anymore. The only workaround I found was to replace 'area' by 'fill'. I include the code and the figures displayed. With my older Matlab version, both figures looked like 'Figure 2.png'.

답변 (1개)

Adam
Adam 2020년 1월 23일

0 개 추천

What was your 'older Matlab version'?
If you keep the handle from an area plot you get an object (or objects, if you feed it a matrix) which you can then change the 'FaceColor' property of. This changed in 2017b.
You can see in the release notes at:
if you scroll down to the R2017b section.

카테고리

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

제품

릴리스

R2019a

태그

질문:

2020년 1월 23일

댓글:

2020년 1월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by