Limiting the extent of the crop using export_fig
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Leo Simon
el 31 de Dic. de 2016
I'm using export_fig with the following command (both options are necessary for me):
export_fig('png','opengl',<filename>)
The program is great but it crops the figure so that the boundary of the png file touches the title and labels text, as the example illustrates. Is there a way to modify the crop so that it leaves a little bit of space around the title and the labels? Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159342/image.png)
0 comentarios
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 31 de Dic. de 2016
You might have to read it in as an image, then use padarray() or regular assignment to pad the edges. Then save it back out. Unless export_fig() has such a padding option already.
0 comentarios
Ver también
Categorías
Más información sobre Axis Labels en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!