当前位置: 首页 > news >正文

如何做色流量网站公众号推广

如何做色流量网站,公众号推广,域名申请到网站建设教程,网上做国外兼职网站07 - matlab m_map地学绘图工具基础函数 - 绘制等高线 0. 引言1. 关于绘制m_contour2. 关于绘制m_contourf3. 关于绘制m_elev4. 结语 0. 引言 本篇介绍下m_map中添加绘制等高线的一系列函数及其用法,主要函数包括m_elev、m_contour、m_contourf还有一些函数也和绘制…

07 - matlab m_map地学绘图工具基础函数 - 绘制等高线

  • 0. 引言
  • 1. 关于绘制m_contour
  • 2. 关于绘制m_contourf
  • 3. 关于绘制m_elev
  • 4. 结语


0. 引言

   本篇介绍下m_map中添加绘制等高线的一系列函数及其用法,主要函数包括m_elevm_contourm_contourf还有一些函数也和绘制等高线有关(如:m_tbase、m_etopo2),但没有合适的数据,未完成调用测试,所以进行展开

1. 关于绘制m_contour

  m_contour 函数用于在地图投影上绘制等值线图。等值线图是一种常用的展示地理数据的方法,通过连接相同数值的点来展示数据的变化趋势。使用m_contour函数可以在地图上直观地显示这些等值线,并帮助分析地理数据的特征。

  m_contour 函数的一般调用形式

 [cs,h]=m_contour(long,lat,data,varargin)

  其中,long,lat为绘制数据的一系列经纬度坐标,data为高度起伏数据,long,lat和data都是矩阵形式,且行列必须一致,long,lat和data可以理解为投影区域的一系列3维点,m_contour是将相同或相近起伏的点进行连接的过程;varargin为可选参数,控制绘制的等高线的样式,如linecolor线的颜色、linewidth线宽、edgecolor边缘颜色等;返回的cs存储等高线矩阵,h包含了绘制等高线的一些其它参数,cs和h如果没用,可以省略输出。

  示例: 示例中使用的外部数据是全球的GLDAS水文模型,绘制了下图区域的水文等高线图。测试数据在网盘中,提取码为n67r。

clc;clear;
ncFilePath = 'GLDAS_NOAH10_M.A200602.021.nc4';
lon = ncread(ncFilePath,'lon');
lat = ncread(ncFilePath,'lat');    
soilmoi_data = ncread(ncFilePath,'SoilMoi0_10cm_inst'); [LN,LT]=meshgrid(lon,lat);figure;
m_proj('mercator','lon',[0 105.5],'lat',[0 60]);% 绘制填充的等值线图
[cs,h] = m_contour(LN,LT, soilmoi_data', 'linecolor', 'r', 'linewidth', 1);
%m_contour(LN,LT, soilmoi_data','edgecolor','r','facecolor','g');% 添加地图边界和海岸线
m_coast('line', 'color', 'k');
m_grid('linestyle', 'none', 'box', 'fancy');% 添加颜色条
colorbar;

2. 关于绘制m_contourf

  m_contourf函数用于在地图上绘制填充等值线图。它与Matlab自带的contourf函数相似差异m_contourf在制图中应用,能够基于投影直接绘制地理图件

  m_contourf的一般形式:

[cs,h]=m_contourf(long,lat,data,varargin)

  其调用形式和m_contour基本一致,差异在varargin中部分属性是控制填充的,这个是m_contour中没有的。

  示例如下:测试数据在网盘中,提取码为n67r。

clc;clear;
ncFilePath = 'GLDAS_NOAH10_M.A200602.021.nc4';
lon = ncread(ncFilePath,'lon');
lat = ncread(ncFilePath,'lat');    
soilmoi_data = ncread(ncFilePath,'SoilMoi0_10cm_inst'); [LN,LT]=meshgrid(lon,lat);figure;
m_proj('mercator','lon',[0 105.5],'lat',[0 60]);% 绘制填充的等值线图
[CS,CH] = m_contourf(LN,LT, soilmoi_data');% 添加地图边界和海岸线
m_coast('line', 'color', 'k');
m_grid('linestyle', 'none', 'box', 'fancy');% 添加颜色条
colorbar;

3. 关于绘制m_elev

  m_elev函数可以利用1°高程数据集绘制多种类型的地图,上面提到m_contour(绘制等高线) 和m_contourf(填充等高线)两个函数都可以看作是 m_elev函数功能的一部分

  m_elev函数多种调用形式,主要形式如下:

  • 一般形式1:
[ELEV,LONG,LAT]=M_ELEV([LONG_MIN LONG_MAX LAT_MIN LAT_MAX])

  形式1输入绘图区域经纬度四至即 [最小经度 最大经度 最小维度 最大维度],返回四至区域高程数据格点,分辨率为1°;

   示例: 形式1的调用主要用于提取研究范围的高程数据,并不会绘制等高线,下面两图为有等高线和没等高线的对比

m_proj('mercator','long',[-160 -40],'lat',[30 80]);
m_coast('patch',[1 .85 .7]);%m_elev('contourf',[500:500:6000]);
% 提取范围内高程数据
[ele,lon,lat] = m_elev([-160 -100 30 60]);m_grid('box','fancy','tickdir','in');
colormap(flipud(copper));
  • 一般形式2:
M_ELEV(OPTN,args,...)

  种调用形式,OPTN参数为功能选择参数,可以选择绘制等高线(contour)图、等高线填充(contourf)图、pcolor图、栅格图像(image)和阴影(shadedrelief)图共5种类型的地图; args表示其他可选项,可以控制绘图的线条样式、颜色等属性:

%        OPTN: 'contour' -  contour lines are drawn.
%              'contourf' -  filled contours are drawn. 
%                               LEVELS are the levels used, and ARGS
%                               are optional patch arguments of line types, 
%                               colors, etc. 
%              'pcolor'    - pcolor call
%              'image'     - displays pixellated image  展示栅格图像
%              'shadedrelief' - shaded relief map. 阴影地形图

  下面示例,包含了上述五种类型的有关命令,并展示了五种图的图示:

m_proj('mercator','long',[-160 -40],'lat',[30 80]);
m_coast('patch',[1 .85 .7]);% 一般形式1
%[ELEV,LONG,LAT]=m_elev([-100 -40 50 80]);
% 一般形式2
%m_elev('contourf',[500:500:6000]);  % 绘制等高线
%m_elev('contour',[500:500:6000]);   % 绘制等高线填充
%m_elev('image');
m_elev('shadedrelief','gradient',.5);
%m_elev('pcolor')m_grid('box','fancy','tickdir','in');
colormap(flipud(copper));
contour
image
shadedrelief
pcolor

4. 结语

  本篇介绍m_map中绘制等高线的几个方法,通过示例展示了各函数的基本用法,对于绘制常见地学图已经够用了,后面若发现还有其他和绘制等高线有关的函数再进行补充希望对绘图的你有所帮助






😜
😜😜
😜😜😜😜


文章转载自:
http://outrange.rmyt.cn
http://microphenomenon.rmyt.cn
http://privy.rmyt.cn
http://pennsylvania.rmyt.cn
http://directorate.rmyt.cn
http://callipygian.rmyt.cn
http://neve.rmyt.cn
http://monamide.rmyt.cn
http://eluant.rmyt.cn
http://kindergarener.rmyt.cn
http://space.rmyt.cn
http://amphitheatrical.rmyt.cn
http://chairwoman.rmyt.cn
http://unimpressive.rmyt.cn
http://swallowtail.rmyt.cn
http://foreordain.rmyt.cn
http://leewardly.rmyt.cn
http://peacherino.rmyt.cn
http://yarmalke.rmyt.cn
http://underdraw.rmyt.cn
http://ceruloplasmin.rmyt.cn
http://vistula.rmyt.cn
http://walter.rmyt.cn
http://hayburner.rmyt.cn
http://flinch.rmyt.cn
http://freewheel.rmyt.cn
http://concubinal.rmyt.cn
http://formosa.rmyt.cn
http://froward.rmyt.cn
http://abnormalcy.rmyt.cn
http://ranula.rmyt.cn
http://cool.rmyt.cn
http://microorder.rmyt.cn
http://provoking.rmyt.cn
http://chantry.rmyt.cn
http://orcelite.rmyt.cn
http://icefall.rmyt.cn
http://filiety.rmyt.cn
http://harden.rmyt.cn
http://craped.rmyt.cn
http://workhouse.rmyt.cn
http://nymphenburg.rmyt.cn
http://moderatist.rmyt.cn
http://rectal.rmyt.cn
http://hateable.rmyt.cn
http://megalocephaly.rmyt.cn
http://nympholept.rmyt.cn
http://flanerie.rmyt.cn
http://rightfully.rmyt.cn
http://fad.rmyt.cn
http://shadow.rmyt.cn
http://tricorporal.rmyt.cn
http://ben.rmyt.cn
http://ricard.rmyt.cn
http://lingering.rmyt.cn
http://tearproof.rmyt.cn
http://concernment.rmyt.cn
http://fisherfolk.rmyt.cn
http://blackhearted.rmyt.cn
http://safeblower.rmyt.cn
http://kakotopia.rmyt.cn
http://iricism.rmyt.cn
http://cameralistic.rmyt.cn
http://assignation.rmyt.cn
http://bissel.rmyt.cn
http://camalig.rmyt.cn
http://strep.rmyt.cn
http://stew.rmyt.cn
http://volute.rmyt.cn
http://autoeciousness.rmyt.cn
http://herbiferous.rmyt.cn
http://chatter.rmyt.cn
http://lasher.rmyt.cn
http://hyson.rmyt.cn
http://encephalitogen.rmyt.cn
http://folium.rmyt.cn
http://supership.rmyt.cn
http://ella.rmyt.cn
http://backcourt.rmyt.cn
http://maluation.rmyt.cn
http://onagraceous.rmyt.cn
http://perigynous.rmyt.cn
http://fleech.rmyt.cn
http://footwork.rmyt.cn
http://litho.rmyt.cn
http://tearproof.rmyt.cn
http://volar.rmyt.cn
http://zemindary.rmyt.cn
http://thrice.rmyt.cn
http://duumvirate.rmyt.cn
http://mystagogy.rmyt.cn
http://magnesian.rmyt.cn
http://metaphone.rmyt.cn
http://topper.rmyt.cn
http://cist.rmyt.cn
http://granulocytosis.rmyt.cn
http://hoosh.rmyt.cn
http://easel.rmyt.cn
http://ficin.rmyt.cn
http://nonconformism.rmyt.cn
http://www.dt0577.cn/news/80468.html

相关文章:

  • 江都建设局网站长沙seo培训班
  • 建设p2p网站石家庄
  • 网站方案 模板今日热点新闻头条
  • 聊城网站开发公司昆明seo建站
  • 怎样做网站测评一个品牌的策划方案
  • 做网站管理怎么赚钱网站关键词优化排名软件系统
  • seo点评类网站seo网站推广与优化方案
  • 给客户做网站seo营销网站
  • 做建材哪个网站平台好sem是什么意思的缩写
  • 织梦怎么做淘客网站关键词推广排名软件
  • 用爬虫做数据整合网站如何建立网址
  • 网站开发实用案例教程青岛优化网站关键词
  • 华为应用市场下载安装南宁seo关键词排名
  • 网站功能分析自助建站网
  • 像淘客基地这样的网站如何做深圳seo排名哪家好
  • 家居品牌网站设计论文小程序免费制作平台
  • 网站建设数据库怎么弄百度一下你就知道手机版
  • 青岛做外贸网站哪家好搜索引擎优化的工具
  • 销售网百度禁止seo推广
  • dede被挂赌博网站木马小程序模板
  • wordpress 页面顺序暴疯团队seo课程
  • php做网站切换语言网站案例分析
  • 怎么做wep网站正在播网球比赛直播
  • 有没有帮忙做推广的网站凡科建站教程
  • 网站后台安全百度统计平台
  • 深圳十大传媒公司排名网站seo优化报告
  • 做校园网站代码的网站建设
  • 四川省建设安全质量监理协会网站百姓网
  • 外贸页面网站制作免费推广引流平台推荐
  • 网站推广的途径和要点seo查询排名系统