Saving and Copying Plots with Minimal White Space. Active 4 years, 4 months ago. ... this is only a part of the solution for the case when your figures are PDFs with a lot of whitespace. any help? Show Hide all comments. However, when I export the figure as a png file, there's loads of whitespace on both sides of my figure. Matlab Cropping Plots to remove whitespace. ... How to auto-remove trailing whitespace in Eclipse? When I drag and drop the .emf file into PowerPoint I notice a large white space to the left and right of the figure. My question is how can I reduce the WHITE space in MATLAB so that I don't need to CROP in PowerPoint? It cuts some non-white part of one figure and height of two figures don't match (see my MWE). From the plot browser panel, uncheck each object until you figure out which object is drawing the lines that you need to remove. 0 Comments. Learn more about figure Matlab - Removing whitespace around a figure produced by a toolbox. In order to remove the white space I typically CROP the figure in PowerPoint. I'm exhausted of plans now. Automatically remove white space from figure. Also, you have to adjust figure aspect ratio to match that of the image, so that all figures fit without vertical or horizontal space. I am using a toolbox which gives figure as output for a certain command. Then double click on the offending object to bring up the "property editor" panel, and mostly likely click "More properties" to view all possible properties of that object. Code: (can be compiled and edited, if valid LaTeX code and complete) I am writing a code for flowers recognition in MATLAB but whenever I want to save a figure it is saved with a white border - margin how can I remove it and save it as the exact size of the original... Stack Overflow. If you show a different image in each subplot, all images should have the same aspect ratio, otherwise it's not possible for them to fit in the figure without empty spaces. My MWE is given below. Actually trim doesn't have any control. How do I remove the white space from the figures ? Instead of Matlab's dumb figure it would be something like Automatically remove white space from figure. Like I used to do in dvi, clip is supposed to automatically remove the unnecessary white spaces around the figure. Viewed 438 times 1. For example, strtrim removes leading and trailing space and tab characters, but does not remove the nonbreaking space character, char(160). I don't want to have to save the image then manually crop it. Learn more about plot, plotting, graph, graphics One way to minimize the white space when saving or copying the contents of a plot is to use the axes toolbar, which appears when you hover over the upper right corner of the axes. I have fumbled around with the PaperPosition parameter but this didn't help me at all. How do I remove white space before or after the figures and tables? Learn more about figure How can I trim leading and trailing white space… Does anyone know how to crop the 'paper' tightly around my figure? When I export the image as eps or pdf, there are whitespace … ... the previous page has white spaces between the section heading and the paragraphs before and after. 374. newStr = strtrim(str) removes leading and trailing whitespace characters from str and returns the result as newStr.However, strtrim does not remove significant whitespace characters. Ask Question Asked 4 years, 4 months ago.