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!