flip scatterm plot over world map
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
manuel FOSSA
am 1 Dez. 2016
Beantwortet: manuel FOSSA
am 2 Dez. 2016
I want to overlay a scatterm plot over a world map.
The code is like:
ax = axesm('MapProjection','eqdcylin','MapLatLimit',latlim,'MapLonLimit',lonlim)
ax2 = axesm('MapProjection','eqdcylin','MapLatLimit',latlim,'MapLonLimit',lonlim)
load coastlines;
geoshow(ax,coastlat,coastlon ...);
scatterm(ax2,latcoord,loncoord...);
The problem is that the scatter plot is flipped so i need to flip it back.
But doing
set(ax2,'YDir','reverse');
Flips both the map and the scatter plot.
According to matlab documentation it is probably because only one axesm can be activated at a time.
How can i flip only the scatterm plot?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 1 Dez. 2016
see this link for more or less same thing: http://in.mathworks.com/matlabcentral/answers/314877-adding-second-colormap-to-worldmap-figure
You define two axes like in the link and try to reverse.
Or reverse the data the way you want before plotting.
3 Kommentare
Siehe auch
Kategorien
Mehr zu Geographic Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!