Aesthetic Plotting with Graphics
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Sven
il 31 Ott 2011
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 Commenti
Vedere anche
Categorie
Scopri di più su Environment and Settings in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!