M_map should not be that hard

2 次查看(过去 30 天)
Pepe
Pepe 2019-3-12
编辑: Pepe 2019-3-12
Hi everyone!
So I saw this picture on m_map users guide and it is very simillar to something i want to create but there is no code for this picture.
Can you help me figure out how the code shoud look like for this picture?
I draw a worldmap with:
f=figure;
m_proj('miller','lat',[-77 77]);
m_coast('patch',[0.7 1 0.8],'edgecolor','k');
m_grid('backcolor',[0.2 0.65 1])
and now I want to draw this markers and to see them in legend. If I use just m_line for example:
m_line(longitude,latitude,'LineStyle','none','marker','o','markersize',5,'MarkerEdgeColor','none','MarkerFaceColor',[1 0 0]);
I would get markers but they won't be seen in legend because still just the data of land and ocean is seen in the legend. Maybe I sholud not use m_line but something else.
I would appreciate your help :) Thanks in advance.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by