Problem in saving figure

2 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2014-2-11
Sorry, you do or you do not want the white part with the numbers and ticks?
Explorer
Explorer 2014-2-11
Yeah, I do not want the white part.

请先登录,再进行评论。

采纳的回答

Mischa Kim
Mischa Kim 2014-2-11
This answer illustrates the how-to well. Simply clip the figure based on its size.
  5 个评论
Mischa Kim
Mischa Kim 2014-2-11
Just use the export command you have been using:
hgexport(gcf, 'figure1.jpg', hgexport('factorystyle'), 'Format', 'jpeg');

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by