Why are the top and bottom parts of my MATLAB figure cropped when I use SAVEAS to save a figure to a PNG-file?
When I try to save my figure to a PNG-file using SAVEAS, the top and bottom parts of the image are cutoff. However, when I use SAVEAS to save my figure to a BMP-file, the figure appears just fine. If I use PRINT instead of SAVEAS, the cropping occurs for either file format. For example:
figure;set(gcf,'position',[0 0 1000 800]);axes('fontsize',28);title('Title');xlabel('X Axis');saveas(gcf,'tmp','png');saveas(gcf,'tmp','bmp');
Best Answer