Add geographic data to pcolor plot
9 views (last 30 days)
Show older comments
Can anyone advise me as to how I can add geographic information to a pcolor plot?
Each of the variables I have is a 12500x800 matrix (these variables are too large to attach here).
I have plotted using the following code:
h=pcolor(new_lon,new_lat,new_maxdata);
set(h,'EdgeColor','none');
colorbar
caxis([0 100])
hold on;
xlabel('Longitude')
ylabel('Latitude')
set(gca,'tickdir','out','layer','top','fontname',...
'arial','fontsize',12);
I'd like to add land for the region, just to at least show where the land begins, not necessarily super detailed. I considered geoscatter() but it doesn't work with matrices. Are there any other options? Maybe I have to add a separate plot on top with land data?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Geographic Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!