Painters and openGL Renderer - shift marker or blurr marker in print to .pdf

조회 수: 2 (최근 30일)
Craig Ferguson
Craig Ferguson 2017년 11월 30일
답변: Mukul Rao 2017년 12월 6일
I am plotting a circle marker [plot(...'o'...)] and then overprinting whiskers [plot(...'-'...)] in the horizontal and vertical directions.
When I print with the Painters renderer, the marker is shifted. So the crosshairs of the whiskers are no longer centered (see painters.png).
filename=['test79']; print(gcf, '-painters', '-dpdf', [filename,'.pdf']);
When I print with the opengl renderer, the image is degraded(undesired) and blurry, but the crosshairs are centered (desired) (see opengl.png).
Is there a way to obtain both a high quality pdf with proper marker orientation? Any help would be greatly appreciated.
Thank you.
  댓글 수: 2
Mukul Rao
Mukul Rao 2017년 12월 5일
Hi, can you share your version of MATLAB and code snippet to reproduce this issue?
Craig Ferguson
Craig Ferguson 2017년 12월 5일
편집: Craig Ferguson 2017년 12월 5일
Dear Mukul Rao, Thank you for looking into this issue. I am using R2017a. I am sharing a sample code (debugme.m) that leads to the same behavior. The 1:1 line is plotted and passes through the intersection of the crosses, but not the center of the circular markers. The markers are consistently shifted up and to the left (see test01.pdf).
Thank you for any insight you can provide.

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

답변 (1개)

Mukul Rao
Mukul Rao 2017년 12월 6일
Hi, what you describe is indeed an unexpected behavior with printing that has been fixed in MATLAB R2017b.

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by