Edit area graph legend data

I have this area graph:
As you could see the legend refers to the x-axis data. How can I display the legend referring to the y-axis data (should be 104 data point not 50)?
Is there a better way to automatically change data colours? If I did not change Facecolor, different data are displayed with the same same colour.
Thank you

2 件のコメント

KSSV
KSSV 2019 年 4 月 29 日
Why you want to go for a legend? I think colorbar suits your need.
Barbab
Barbab 2019 年 4 月 29 日
grafico.png
Thank for your answrer.
I want my legend to look like this.
(I use different data for this graph)

回答 (0 件)

この質問は閉じられています。

質問済み:

2019 年 4 月 29 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by