how to crop figures from excess white area
Afficher commentaires plus anciens
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:

Réponse acceptée
Plus de réponses (1)
William Rose
le 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 commentaires
Sven Larsen
le 12 Nov 2023
Dyuman Joshi
le 12 Nov 2023
@Sven Larsen, Could you share the code that produces this figure?
Sven Larsen
le 12 Nov 2023
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


