m_pcolor problem in m_map toolkit

1.Problem Description
When I use the m_pcolor function to draw two-dimensional latitude and longitude non-uniform grid data, there will be no data displayed on the left side of the image (as shown by the red circle in Figure 1). But when I use the pcolor function to draw, there is no such problem(Figure 2). I tried to adjust the m_pcolor function, but the gains were very small.
2.code
clc;clear;close all;
figure(1)
set(gcf,'color','w');
load('new_thremap.mat');
load('nlat.mat');
load('nlon.mat');
load('pp.mat');
m_proj('miller','lon',[96 119],'lat',[10 29]);%mercator miller lambert oblique
m_pcolor(nlon,nlat,pp);
colormap(nclcmap(5,0));
hold on
m_plot([inborder(:).X],[inborder(:).Y],'color',[0.2,0.2,0.2],'linewidth',1);
m_grid('linewi',1,'tickdir','in','linestyle','none','FontSize',12);
colorbar;
figure(2)
set(gcf,'color','w');
mymap=pcolor(nlon,nlat,pp);
mymap.EdgeAlpha=0;
colormap(nclcmap(5,0));
hold on
plot([inborder(:).X],[inborder(:).Y],'color',[0.2,0.2,0.2],'linewidth',1);
xlim([96,119]);
ylim([10,29]);
box on;
set(gca,'TickLength',[0.02 0],'Linewidth',1.25,'FontSize',12,'FontName','Arial');
ylabel('Latitude(°)','FontSize',12,'FontName','Arial');
xlabel('Longitude(°)','FontSize',12,'FontName','Arial');
set(gca,'YTick',12:4:28);
set(gca,'XTick',100:5:115);
colorbar;
set(gca,'Layer','top');
3.attachment is data

답변 (0개)

태그

질문:

2022년 5월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by