Background color of box (not just the figure background)
8 views (last 30 days)
Show older comments
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 Comments
Answers (1)
the cyclist
on 5 Aug 2023
Edited: the cyclist
on 5 Aug 2023
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 Comments
See Also
Categories
Find more on Specifying Target for Graphics Output in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!