In a script for generating a 3d plot, using surf, text, plot3, annotation etc, I mark a point with
plot3(x1,y1,z1,'k.','MarkerSize',20);
It appears as a bullet of the expected size in the figure window. But when I subsequently do
print -dpng 'translate.png'
and open translate.png, the bullet appears in a smaller (probably default) size, really too small to see. Is this a bug in Matlab or am I doing something wrong. Is there some known way to fix the problem?

댓글 수: 3

Walter Roberson
Walter Roberson 2021년 1월 28일
If I recall correctly, '.' marker is the only one affected.
Brynjulf Owren
Brynjulf Owren 2021년 1월 28일
Thanks, some further tests confirm that you are right. I also found another fix. Increasing the MarkerSize to 25 caused the problem to go away, at the expense of having to use a slightly larger bullet than I had in mind.
Bjorn Gustavsson
Bjorn Gustavsson 2021년 1월 28일
This might also be version/OS-dependent, when I tried your example (V2020a/Ubuntu) it worked OK...

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

 채택된 답변

Bjorn Gustavsson
Bjorn Gustavsson 2021년 1월 28일

0 개 추천

Perhaps using scatter3 can be a QD workaround? It would be a bit fiddlier, but it might work, I have the impression that those markers are rendered differently than the '.'-markers.
HTH

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Type Identification에 대해 자세히 알아보기

제품

릴리스

R2020b

태그

Community Treasure Hunt

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

Start Hunting!

Translated by