MATLAB: Problem in saving figure

export figuresave figuure

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?

Best Answer

This answer illustrates the how-to well. Simply clip the figure based on its size.