Plotting contours of my data onto a map

8 visualizaciones (últimos 30 días)
elspeth storey
elspeth storey el 23 de Mzo. de 2021
Respondida: SaiDileep Kola el 26 de Mzo. de 2021
Is is possible to plot contours of my data (a matrix) onto a map similar to that created by:
geolimits([49 53],[-6 2.8])
geobasemap streets
I get the following error when using contourm:
Error using hggroup Group cannot be a child of GeographicAxes.
Error in internal.mapgraph.HGGroupAdapter (line 62) g = hggroup('Parent',ax);
Error in internal.mapgraph.ContourGroup (line 282) h = h@internal.mapgraph.HGGroupAdapter(args{:});
Error in internal.mapgraph.GeographicContourGroup (line 55) h = h@internal.mapgraph.ContourGroup(varargin{:});
Error in contourm (line 110) h = internal.mapgraph.GeographicContourGroup(ax, Z, R, levelList);
I can plot the data onto a worldmap:
> worldmap([50 52],[-5.7 2.5])
> load coastlines
> plotm(coastlat,coastlon)
> contourm(testlat,testlon,testdat)
However, this map is poor quality as it is not particularly refined. I ideally want to plot on a map like 'geobase streets'.
Any advice on how to plot contours of my data onto the geo map would be apprecied. If this is not possible, then I would like to know if there is a way of improving the quality of map produced by worldmap. Thanks

Respuestas (1)

SaiDileep Kola
SaiDileep Kola el 26 de Mzo. de 2021
try with second syntax provided here

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by