Adding background image to a Pcolor plot.
9 次查看(过去 30 天)
显示 更早的评论
Hello,
Firstly I should say that I've seen similar questions like this one here, but couldn't actually manage to solve my question.
I need a pcolor-overlayed image like this one: http://www.mapwatch.com/gallery/cumulative-rainfall-map.gif
But I only need the black minor borders (white thick state border overlay not needed).
Assume that I have a image having borders like above called "map.jpg".
And I have my distribution pcolor plot called "P".
I tried to change Pcolor plot's transparecy with FaceAlpha, and putting my image on background (I tried this http://www.mathworks.com/support/solutions/en/data/1-19J7T/ ).
Plot transparency worked, but I couldn't combine it with the image.
Any help is much appreciated.
Thanks in advance.
Al
0 个评论
回答(3 个)
Walter Roberson
2011-2-7
To check, are you sure you want pcolor() and not image() or imagesc() ? pcolor applied to an NxM matrix outputs (N-1) x (M-1) squares.
Could you show the section of code you use to try to do the combining operation?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!