Print option does not save the figure correctly

Dear all, I use a simple code line
print -depsc -tiff -r300 picture
to print the current figure as picture.eps. But the result is not a smooth picure, rather a sparse line picture wiht a lot of white space in between; thus it is useless (the same with jpeg). Where might be the mistake? Thanks for your advice!

 채택된 답변

Shashank Prasanna
Shashank Prasanna 2013년 7월 7일

1 개 추천

What is the version of MATLAB you are using?
Can you post the image? or give some reproduction code?

댓글 수: 6

Peter
Peter 2013년 7월 7일

Matlab 7.6.

Ho can I post an image?

If you post it online, you can share the link here so we can see.
Also check if this bug report is related to the issue you are facing:
You may need to log into your mathworks account to check the bugreport.
Peter
Peter 2013년 7월 7일
편집: Peter 2013년 7월 7일
Here is a link to the picture;
Actually, it is a surf plot
surf(tempT,tempF(tempFstart:tempFstop),(tempxP), 'FaceColor','interp','EdgeColor','none'); % pcolor als test
view(0,90);
axis tight;
set(gca, 'GridLineStyle','none','box','off');
set(gca,'ylim',[5 50], 'yticklabel',[]);
and it is displayed correctly as figure. But when I print it, the blue background is gone and instead of a steady picture I get the lined appearence (the same when I try to save it from the figure menu).
can you check the renderer you are using?
>> get(gcf,'Renderer')
Change it to painters or zbuffers if it is opengl
>> set(gcf,'Renderer','painters')
Try saving now, does that help?
Peter
Peter 2013년 7월 8일
Thanks a lot - 'painters' works well... (at least for the jpeg or tiff version)
Ali Kandil
Ali Kandil 2019년 11월 13일
Great
It worked for me
Thanks alot

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

질문:

2013년 7월 7일

댓글:

2019년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by