2D Plotting with Mapping Toolbox

This function plots a 2D Surface (shading interp, no white edges).
1.9K Downloads
Updated 11 May 2005

No License

Assume you have 2D dataset (defined by latitude and longitude) and you would like to use the mapping toolbox to produce a nice scientific plot for publications. Due to a small bug you will end up with white edges on the plotframe. Furthermore the resolution is also not suited for publications.

The function splot1(map,maplegend) will do the job.
Input1=map; [nxm] Matrix
Input2=maplegend; (see Mapping Toolbox for further help regarding maplegend).
If wanted the figure will be saved in 'matlabroot\work\figures'. The format used is png and looks nice and sharp in Microsoft Word.

Thanks to Sebastian Schaefer from Mathworks Support.

Cite As

Felix Mueller (2024). 2D Plotting with Mapping Toolbox (https://www.mathworks.com/matlabcentral/fileexchange/7616-2d-plotting-with-mapping-toolbox), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0