How to set alpha value (transparency) of legend to match alpha in fill plot using automatically generated legend?
21 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Legend in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!