1

I am using a toolbox which gives figure as output for a certain command. When I export the image as eps or pdf, there are whitespace around the image. As the toolbox directly produces the image as output, I can not use any of solutions given here. How do I remove the white space from the image?

Community
  • 1
  • 1
Rhinocerotidae
  • 855
  • 1
  • 11
  • 26
  • the whitespace I assume is the boarder of the figure? You can still use the solution you posted by editing the output section of the toolbox you are using. – GameOfThrows Jun 20 '16 at 15:27
  • Does the output save a figure or just produce a figure on the screen? – Suever Jun 20 '16 at 15:36
  • @Suever: It produces a figure on the screen. I have found a solution, although not in matlab. " cat image_with_whitespace.eps | ps2eps > image_without_whitespace.eps " This does the job for me. – Rhinocerotidae Jun 20 '16 at 16:21
  • @SaravanaKumar With access to the figure you can use [export_fig](http://de.mathworks.com/matlabcentral/fileexchange/23629-export-fig) like I already suggested [here](https://stackoverflow.com/questions/30891582/how-to-center-matlab-eps-figure-in-latex-document/30891868#30891868) – Knipser Jun 21 '16 at 06:26

0 Answers0