How can I use numbers as Markers in geoshow maplots
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
figure
ax = worldmap([32.5 42],[-125 -114]);
load coast
geoshow(ax, lat, long,...
'DisplayType', 'polygon', 'FaceColor', [.45 .60 .30])
states = shaperead('usastatelo', 'UseGeoCoords', true);
faceColors = makesymbolspec('Polygon',...
{'INDEX', [1 numel(states)], 'FaceColor', polcmap(numel(states))});
geoshow(ax, states, 'DisplayType', 'polygon', 'SymbolSpec', faceColors)
Map = xlsread('Locations.xlsx');
Map(:,3) = Cali_info(:,1);
Map(:,4) = Cali_info(:,2);
geoshow(Map(:,1),Map(:,2), 'DisplayType','Point','Marker','+','Color', 'red','Markersize',12);

0 commentaires
Réponses (1)
Rohit Kudva
le 16 Juil 2015
Hi Juan,
Unfortunately 'geoshow' function does not have any property that will allow you to use numerical markers on the map. You can instead use 'textm' function to display numerical markers. Refer to the following link to know more about the 'textm' function:
You can also refer to the following link which may help you resolve this issue:
I hope the above links will help you to get the desired output. All the best!
- Rohit
0 commentaires
Voir également
Catégories
En savoir plus sur Map Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!