how to crop figures from excess white area
Mostrar comentarios más antiguos
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:

Respuesta aceptada
Más respuestas (1)
William Rose
el 10 de Nov. de 2023
1 voto
@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 comentarios
Sven Larsen
el 12 de Nov. de 2023
Dyuman Joshi
el 12 de Nov. de 2023
@Sven Larsen, Could you share the code that produces this figure?
Sven Larsen
el 12 de Nov. de 2023
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


