How to set alpha value (transparency) of legend to match alpha in fill plot using automatically generated legend?
21 次查看(过去 30 天)
显示 更早的评论
Hi,
crawling around the forums for a while now but haven't found any helpful answer. I create several fill plots and the legend with
for i = 1:6
fill(fillX, fillY, my_col(i,:), 'facealpha', fillAlpha, 'DisplayName', par.Names{i});
end
legend show
Everything works fine. The only issue is that the legend does not use the correct face alpha for the legend entries:
![mathworks.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/210869/mathworks.png)
I'm using MATLAB Version 2017a.
Kind regards,
Moritz
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!