how to crop figures from excess white area
Show older comments
i have a wind rose figure (see attachment) and I'm trying to get rid of white space around image. Preferably to control how there is white space around given image. If I try to fiddle with figure property inspector, it just resizes image and wont reduce excess space.
basically, I want able to crop image like this:

Accepted Answer
More Answers (1)
William Rose
on 10 Nov 2023
1 vote
@Sven Larsen, One can reduce the whitespace by clicking and dragging the edgesof the image window so that it more closely matches the aspect ratio of the contents. With this approach I was able to get the attached result, saving the image as a .fig file. It is still not as tight as you would like. To reduce the whitespace more, I would save it in a different format, such as bmp, then use an external editor to crop as desired. See attached.
3 Comments
Sven Larsen
on 12 Nov 2023
Dyuman Joshi
on 12 Nov 2023
@Sven Larsen, Could you share the code that produces this figure?
Sven Larsen
on 12 Nov 2023
Categories
Find more on Creating, Deleting, and Querying Graphics Objects in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

