This helped me get a scatter plot on the same axis as my image plot.
When using your suggested library (downloaded today on 3/21/18) with Matlab 2017B, running the code:
ax = gca();
c = linspace(0,1,length(gridcoords(:,1)));
imh = imshow((double(imT)/255.0 + double(projImResized(:,:,3)) )/2.0);
The freezeColors(ax) command returns the err:
Error using matlab.graphics.chart.primitive.Scatter/set
Error setting property 'CData' of class 'Scatter':
Value must be a scalar, vector or array of numeric type
Error in freezeColors (line 157)
Error in GUI_rectangle_bdygradient/recVid_callback (line 310)
Error while evaluating UIControl Callback.
The only factor besides freezeColors no longer working as you figured include:
1. I have defined c and colormap in a way incompatible with freezeColors
2. I am using this within a GUI in a static environment.
Thanks for your help thus far. If you have any further ideas, I'd be a thankful person.