How can I create a correct lambertian colormap from my data with map_m package?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Szabó-Takács Beáta
il 15 Set 2015
Commentato: Szabó-Takács Beáta
il 16 Set 2015
Hi All,
I tried create a lambertian map using with map_m package by the following way:
lon=[-40.375:0.25:75.375];lat=[25.375:0.25:75.375];
lon2(:,1)=lon(1,:); #lon2(464,1)
lat2(:,1)=lat(1,:); #lat2(201,1)
clim5=reshape(clim3,[464,201]); # where clim3(93264,1)
m_proj('lambert','lon',[-40.375 75.375],'lat',[25.375 75.375]);
m_coast('patch',[1 .85 .7]);
hold on
m_pcolor(lat2,lon2,clim5);
but I got the following map (attached). I do not know what I did wrong. Could someone write me how I can create a correct lambertian colormap from my data? Thank you for your help in advance!
0 Commenti
Risposta accettata
Kelly Kearney
il 15 Set 2015
"lambertian" is a fun new word... :-)
What you're seeing is just the block outline of all the grid cells; by default, all Matlab pcolor plots (including those generated by m_pcolor) use this style. You can remove the outlines via:
set(findobj('tag', 'm_pcolor'), 'edgecolor', 'none');
(In non-m_map plots, you could use the shading flat shortcut, but I find that doesn't always play nicely with m_map objects).
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Mapping Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!