Background in EPS export in R2014b

조회 수: 2 (최근 30일)
Edwinv70
Edwinv70 2015년 11월 12일
댓글: Edwinv70 2015년 11월 17일
I upgraded from R2013b to R2015b and now have problems with exporting figures to EPS format. My problem is slightly different than other problems reported before.
>> x=[0 20]; y=[0 8]; plot(x,y);
>> axis equal; axis tight
>> print -depsc my_picture.eps
The key is that the graph doesn't occupy the full figure window. When I include the picture in LaTeX (generating a dvi-file), the old pictures were nicely clipped but the new pictures have a lot of white-space around them that obscure other pictures, the caption, etc.
  • the BoundingBox looks good: 44 81 386 234
  • the PageBoundingBox is different: 0 0 420 315, but doesn't affect the behavior
  • two white rectangles are plotted in PostScript: 0 0 560 420 reIf I remove two of these lines then it works ok.
Is there a way to solve this in Matlab? For instance setting the background of the figure to 'transparent'?
Thanks, Edwin
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 11월 13일
Which operating system are you using?
Edwinv70
Edwinv70 2015년 11월 17일
Using Windows 7 Pro.

댓글을 달려면 로그인하십시오.

답변 (1개)

Shruti Sapre
Shruti Sapre 2015년 11월 16일
  댓글 수: 1
Edwinv70
Edwinv70 2015년 11월 17일
Nope, doesn't work for me. My problem is that the axes don't fill the figure intentionally. Therefore the figure should be automatically resized or clipped in order to show the axes only, instead of the axes being expanded in order to fill the figure.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by