I have experienced erratic behavior with the legend function when used for statistic_image objects, in terms of layout, anchors, and colormaps, whether standalone or as called by the montage function.
Has anyone experienced the same problems and how could we fix this?