setting transparancy of legend?
140 views (last 30 days)
Show older comments
Is it possible to make the background of the legend be slighly transparent so that the lines behind it can be somewat visible?
1 Comment
Walter Roberson
on 16 Jan 2017
I will not say that it is
impossible
眼下。当然没有记录。你刚才
might
be able to change it using one of the hidden properties of the legend. Perhaps one of the ColorSpace properties. Nothing I have tried has worked yet.
Accepted Answer
alice
2017年6月27日
In
无证件MATLAB
, you will find how to do it here:
http://undocumentedmatlab.com/blog/transparent-legend
.
More Answers (2)
Ilja Maljutenko
2021年5月19日
This solution seems to work in Matlab 2020 +
h_leg.BoxFace.ColorType=“truecoloralpha”;
h_leg.BoxFace.ColorData=uint8(255*[1 1 1 0.75]');
where h_leg is your legend box handle.
0 Comments
Wilson A N
on 16 Jan 2017
编辑:Walter Roberson
on 16 Jan 2017
You can refer to the link given below on how to set the different properties of legend
要更改图例的背景颜色,您可以更改“颜色”字段以达到所需的透明度。