Starting with Matlab 2014b I got big problems with scattered plots and color-bars. The color-bar stopped fitting to the scattered plot after plot_google_map was executed.
I had to change line 415 to solve the problem:
h = image(lonVect,latVect,uniImag, 'Parent', axHandle,'cdatamapping','scaled');
17 Dec 2014
KML Toolbox v2.7
Create KML/KMZ files and view them in Google Earth. Supports 3D models, contours, overlays, and more
For those of you receiving an "Invalid MEX-file" error, you need to execute the following code:
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.:$HOME/readimx
Alternatively, you can launch MATLAB using the included shell script (matlab.sh) in the readimx/tools folder. I had to modify mine to point to the proper location and include the -desktop argument.
The disappearing legends you're seeing are due to the subplot command (which deletes any existing axes overlapping its intended space). See https://github.com/kakearney/legendflex-pkg/issues/1 for a full explanation.