How can I use numbers as Markers in geoshow maplots

2 visualizzazioni (ultimi 30 giorni)
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);

Risposte (1)

Rohit Kudva
Rohit Kudva il 16 Lug 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

Community Treasure Hunt

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

Start Hunting!

Translated by