Background color of box (not just the figure background)
8 次查看(过去 30 天)
显示 更早的评论
Hello, Once I generate the plot (.fig) and open it, how can you save the figure such that it has NO background color?
I tried this using property inspector / box styling / color: none.
But that only changes the background of the figure. And the figure is part of a bigger box, I would like for the bigger box to either have no color or for me to be able to select its color.
For example, if I select for the background of the figure to be yellow, then once I generate the .eps file for that .fig and paste it in a document, the figure will show as yellow, within a box that is white color. If the document page color is not white then you can see the contrast.
In the property editor I can change the figure color (to say green) and it will change the entire box background to green, but then when I want to use its .eps file, the backgrownd of the box is back to white and not green.
0 个评论
回答(1 个)
the cyclist
2023-8-5
编辑:the cyclist
2023-8-5
Frankly, I got a little bit confused by your description. Perhaps including some screenshots would help.
I'm not sure, but I think using the exportgraphics function with the "BackgroundColor" property set to "none" will do what you want. (This should give a transparent background, which sound like what you want.)
If that does not do it, I would suggest a keyword search on transparent background matlab figure, to see if you can find what you need. (Or of course someone here may have understood your question better than I did, and offer a solution.)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!