We can plot data with polygon in MATLAB as a data size of 651*1200*12 S.X and S.Y shows the X and Y values of polygon.
for i = 1:12 subplot(4,3,i) pcolor(lon1,lat1,data(:,:,i)) ; shading interp ; geoshow([S.Y], [S.X],'Color','black'); drawnow axis tight end;
This method plots the all data both in and outside polygon but I have to plot data only inside the polygon. So how we can plot the data only inside polygon and put specific colour(white/black/green etc) to area outside the polygon.
The above is the output of my way.
Yet, I want to get this kind of plot:
Only plot the data inside polygon with least gap between subplots both by row and column.