nexus_figure_mode
NEXUS_FIGURE_MODE The object datacursormode () and brush () return.
MATLAB’s datacursormode (FIG) answers a DataCursorManager, and brush (FIG) a Brush: handle objects whose properties ordinary code reads and writes,
dcm = datacursormode (fig); set (dcm, ’enable’, ’on’); hcmenu = get (dcm, ’UIContextMenu’); set (dcm, ’UpdateFcn’, );
Nexus used to answer a plain struct instead, which fails twice over: the core get () rejects a struct outright ("get: H must be a graphics handle"), and set () on a value struct cannot write back, so every property assignment above was silently discarded. A handle object gets both right.
UIContextMenu is a real uicontextmenu on the figure, because callers pass it straight to uimenu () as a parent.
Real case: MTEX’s ODFSections/plot.m does exactly the four lines above, which every plotSection () reaches.