Problem in saving figure

1 visualización (últimos 30 días)
Explorer
Explorer el 11 de Feb. de 2014
Comentada: Explorer el 11 de Feb. de 2014
hgexport(gcf, 'figure1.jpg', hgexport('factorystyle'), 'Format', 'jpeg');
By using above function I am saving figure which is shown below:
But I want to save it as shown below: (with outer white portion of image)
How can I do so?
  2 comentarios
Walter Roberson
Walter Roberson el 11 de Feb. de 2014
Sorry, you do or you do not want the white part with the numbers and ticks?
Explorer
Explorer el 11 de Feb. de 2014
Yeah, I do not want the white part.

Iniciar sesión para comentar.

Respuesta aceptada

Mischa Kim
Mischa Kim el 11 de Feb. de 2014
This answer illustrates the how-to well. Simply clip the figure based on its size.
  5 comentarios
Mischa Kim
Mischa Kim el 11 de Feb. de 2014
Just use the export command you have been using:
hgexport(gcf, 'figure1.jpg', hgexport('factorystyle'), 'Format', 'jpeg');
Explorer
Explorer el 11 de Feb. de 2014
Okay thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics 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!

Translated by