필터 지우기
필터 지우기

scatterplot points cut in half

조회 수: 3 (최근 30일)
Kulan Sinclair
Kulan Sinclair 2018년 6월 19일
댓글: Kulan Sinclair 2018년 6월 20일
I'm making a scatterplot and some of the data points are cut in half(eg. become a semicircle) when I use the saveas function to save it as an image (png, jpg etc) but the points are normal when I save it as a figure and I can save it from the figure properly. ie. the points don't get cut in half. Does anyone know how to stop this from happening?
  댓글 수: 4
Walter Roberson
Walter Roberson 2018년 6월 20일
Odd, that almost looks like it is creating "tiles" and that the tiles are misaligned.
Image Analyst
Image Analyst 2018년 6월 20일
편집: Image Analyst 2018년 6월 20일
Can you at least upload a small subset of the (x,y) coordinates so we can try some things? Make sure your scatter() with that data demonstrates the problem. But scatter() does not put lines, I don't think, so were those lines there before? Did you use plot() to put up the lines, then scatter() to put markers on top of the lines? Or did you use plot() instead of scatter() to plot both the markers and the lines?

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

채택된 답변

OCDER
OCDER 2018년 6월 20일
I used to have issues like this too. Try print to save the image instead, and use painters renderer.
print(gcf, 'figure_name.png', '-dpng', '-r300', '-painters')
  댓글 수: 1
Kulan Sinclair
Kulan Sinclair 2018년 6월 20일
This appears to work, Thanks mate.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by