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?
Best Answer