cbsmith724@gmail.com wrote in message <1172598242.925489.294440@m58g2000cwm.googlegroups.com>...
> Does anyone know how to save a matlab plot as an image without the
> extra white border? When saving a figure as an image (eps, tif, jpg),
> matlab appends an extra border around the plotting area (white in my
> case, but I think that's configurable). I end up opening every image
> with gimp and autocropping it.
>
> For actual images, i can do an imwrite of the data. But for a normal
> plot or if I've drawn something on the image, matlab always appends
> the border that is just too large (imo). Is there a trick to get rid
> of it?
>
> thanks for any suggestions!
> chris
>
Use the following command
set(gca,'LooseInset',get(gca,'TightInset'));
> Does anyone know how to save a matlab plot as an image without the
> extra white border? When saving a figure as an image (eps, tif, jpg),
> matlab appends an extra border around the plotting area (white in my
> case, but I think that's configurable). I end up opening every image
> with gimp and autocropping it.
>
> For actual images, i can do an imwrite of the data. But for a normal
> plot or if I've drawn something on the image, matlab always appends
> the border that is just too large (imo). Is there a trick to get rid
> of it?
>
> thanks for any suggestions!
> chris
>
Use the following command
set(gca,'LooseInset',get(gca,'TightInset'));



.png)









