||
应用水文模型相关的研究,一个重要的过程就是对模型进行校准和验证,最后将校准和验证结果表示在一张图上。这里将作图的matlab代码贴上供大家分享:
%%%%%%%%%%%%%%%%%%%%%code for hydrological model's calibration and validation
plot(yingluoxia, 'DisplayName', 'yingluoxia', 'YDataSource', 'yingluoxia'); figure(gcf)
ax1=gca;
box off;
ax2=axes('Position',get(ax1,'Position'),...
'XAxisLocation','top',...
'YAxisLocation','right',...
'Color','none',...
'XColor','k','YColor','k','XTickLabel',[]); box off;
hold on;
bar(yingluoxia(1:240,3),'DisplayName','yingluoxia(1:240,3)');figure(gcf)
set(gca,'ydir','reverse','xaxislocation','top')
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
注:这个代码能做出粗略图,具体还需要matlab的图片edit进行修改,以我自己的研究为例,结果如下:
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-29 18:47
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社