I’ve started to use the Mapping Toolbox in MATLAB for a project of mine, and below is a screenshot of what I currently have created using it.

What I’m trying to do now is remove the white box from behind the actual map, but I can’t seem to figure out how to do it. I’ve trying setting ‘Frame’ to ‘off’ with the axesm command when first creating the map, but that doesn’t do it. I’ve looked through the documentation to try to figure out why there’s even a white background (and when I use the worldmap command the box doesn’t appear), but I cannot determine why.
EDIT: I am looking to remove the white background entirely, so as to have the main contour plot surrounded by the figure’s background color, which in this case is the gray.
The background color of a figure is a property of that figure named ‘color’.
If you set that property to the value ‘none’ then you will have no background.
So, the easiest way to do it is:
Of course you can give a figure handle instead of the current axes (gca).
The more aggressive option is to set the entire axis off:
But this will remove the axis completely, including labels and such which might not be what you want.