M_Map中提供了画图例的函数m_legend(),但是这个函数很不完善,只能给出line类型的图例 也就是m_scatter()这种点状图形不能画出图例。可以用m_plot()代替 h=m_plot(lon,lat,'bo','MarkerFaceColor','b');m_legend(h,'text');
m_plot代码如下: function han = m_plot(varargin) %将用户输入参数放在varargin中,这个varargin是个大小可变的cell数组, %这样设计的好处是m_plot就和plot一样是一个输入参数可变的函数了global MAP_PROJECTION MAP_VAR_LISTif isempty(MAP_PROJECTION), %判断有没有设定投影方式disp('No Map Projection initializ...
m_scatter(pp(:,1),pp(:,2),1,'b') m_plot(pp1(:,1),pp1(:,2)) shading flat; m_coast('linewidth',1,'color','k'); m_grid('xtick',5,'ytick',5,'tickdir','in','xlabeldir','middle',... 'TickLength',0.008,'LineWidth',1.,'FontName', 'Helvetica','FontSize',9,'font...
m_proj('Mercator','lon',[103 121],'lat',[19 31]);%设置投影方式为:墨卡托,地图显示范围 m_plot(boux,bouy,'k');%最关键的一句,绘制地图%下面这句设置图形横纵坐标为经纬度格式 m_grid('linestyle','none','linewidth',2,'tickdir','out','xaxisloc','bottom','yaxisloc','left','fontsize...
m_quiver(LONG,LAT,U,V,S) % A quiver plot m_text(LONG,LAT,'string') % Text m_patch(LONG,LAT,..patch properties) % Patches. m_patch出现错误时,试着使用命令flipud或者fliplr来扭转点的顺序。 以经纬度方式组织的格网数据也可以contoured: ...
47、e properties) % draw a line on a map m_quiver(LONG,LAT,U,V,S) % A quiver plot m_text(LONG,LAT,string) % Text m_patch(LONG,LAT,.patch properties) % Patches. Each of these functions will handle the coordinate conversion internally, and will return a vector of handles to the ...
当然,边线还可以加载自己想要的地图,在/dcw/上选择区域边界(有一步要选“download?points”我不知道原因),下载*2pts.txt文件后: m_plotbndry(states/*,color,r);?#?*为匹配下载的文件名。 m_grid格网命令。参数有:linest设置格网线条,默认为虚线。xticklabels(yticklabels)设置坐标上的标记方式,很少用。x...
map.html考虑到那些英文水平比我还低的人,故作简单的介绍如下:m_map工具包的加载:下载m-map工具箱后,要想matlab能够调用,首太爷嫉袁羚饯阮挚哩币涝剿缄彦锰释咕猜蓄撅资烹递矗挥疼塞邪稳矣境牲绸霞钨嫩檀霹霸歼薯聋亭液聂瞧诛码颜思杨横暴匀礼抖闯诱瓦恭耙萧蔼黍 m_plotbndry(states/*,color,r)...
m_plotbndry.m - draws a political boundary from the DCW m_usercoast.m - draws a coastline using a user-specified subset database. m_plot.m - draws line data in map coords m_line.m - draws line data in map coords m_text.m - adds text data in map coords m_legend.m - Draw a...
当然,边线还可以加载自己想要的地图,在maproom.psu.edu/dcw/上选择区域边界(有一步要选“download points”我不知道原因),下载*2pts.txt 文件后: m_plotbndry('states/*','color','r'); # *为匹配下载的文件名。 m_grid 格网命令。参数有:linest 设置格网线条,默认为虚线。xticklabels(yticklabels)...