Background color of box (not just the figure background)

16 ビュー (過去 30 日間)
Dave
Dave 2023 年 8 月 5 日
編集済み: the cyclist 2023 年 8 月 5 日
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.

回答 (1 件)

the cyclist
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.)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by