Reputation: 45
I am producing graphs in MATLAB using the following command saveas(gcf, 'save.jpg'])
. However the image that is saved is small. I would like to maximize the graph produced and save the maximized graph. Is this possible?
Upvotes: 3
Views: 704
Reputation: 71
I have looked for this solution for a very a long time, and believe I have found it. The run-time requirements to save the maximized graph seem to be larger than normal because the resolution and image size must be transformed... just something to be aware of.
figure('units','normalized','outerposition',[0 0 1 1]);
set(gcf, 'PaperPositionMode', 'auto');
the first command maximizes the image on your screen, and the second command prepares it to be saved at that size and resolution.
Upvotes: 3