Aesthetic Plotting with Graphics
조회 수: 15 (최근 30일)
이전 댓글 표시
How can I change the plot marker to a picture(.png) I have in my directory as opposed to the default markerstyle (like 'x' or 'o') Is this possible to do?
댓글 수: 0
답변 (1개)
Sven
2011년 10월 31일
Not really, but you could instead use image() multiple times:
xyData = randi(100, 30,2);
markerIm = imread('rice.png');
markerSz = 5;
figure, hold on
for i = 1:size(xyData,1)
imagesc([-.5 .5]*markerSz + xyData(i,1), [-.5 .5]*markerSz + xyData(i,2), markerIm)
end
axis image, colormap(gray)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!