MATLAB: Refresh legend from the command line

legendMATLAB

Right-clicking a legend gives the option to "refresh" the legend.
Does anyone know of a way to call "refresh legend" from the command line?

Best Answer

In the meantime I found an answer elsewhere:
It is possible to access any context menu item via the axes' UIContextMenu property. For details see http://undocumentedmatlab.com/blog/legend-semi-documented-feature/#comment-70611.
Stephan.