Legend Background Color does not appear correctly when figure saved to file

8 views (last 30 days)
I have white colored vectors in my figure, so I am setting the legend background to a non-white color. When I save the figure, the background color does not appear and it is just a white background. I've tried saving in different formats with no luck and I have used the 'print' and 'saveas' functions. Does anyone have experience with this problem or any ideas?
Thanks,
John
  3 Comments
John R
John R on 10 Jan 2020
Thanks for getting back to me. I actually think I found a solution now with set(gcf,'InvertHardCopy','off').
hooman arad
hooman arad on 10 Feb 2023
hi
i have same prob. then i can found my solution by your advice big so Thanks

Sign in to comment.

Answers (0)

Categories

Find more on Printing and Saving 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!