Prev: save timeseries to file
Next: PORTSTATS function
From: ke on 9 Feb 2010 13:41 Hello, I am using Laurent Vaylet's wordreport.m to automatically make daily Word reports that contain matlab figures. My report has 8 possible plots, similar to subplot(4, 2, 1) to subplot(4, 2, 8). But I only plot some of these plots on days when some data is missing. That means I might only have subplot(4, 2, 7) and subplot(4, 2, 8), and no subplots 1-6. When the resulting figure is copied into the word file, all the whitespace allocated for the missing subplots 1-6 is copied too. Is there a way to "crop" the figure so that it only contains the subplots that are present, and gets rid of the unused whitespace? I need to keep the same size and aspect ratio of the remaining axes. [For what it is worth, I actually use axes('pos', [x x x x]) to make each axis, not subplot, but thought it would be easier to explain as subplots.] Thanks, Kate
From: Jan Simon on 10 Feb 2010 16:59 Dear Kate! > Is there a way to "crop" the figure so that it only contains the > subplots that are present, and gets rid of the unused whitespace? I > need to keep the same size and aspect ratio of the remaining axes. It's not getting clear to me: How can you keep the same size *and* crop at the same time? Would it help to export just the drawn axes and not the complete figure? Kind regards, Jan
|
Pages: 1 Prev: save timeseries to file Next: PORTSTATS function |