
Until then – have fun using it!Ĭan you find a good use for graphics.cursorbar? if so, please let us know by posting a comment below. For these reasons it would not surprise me at all to find that MathWorks will remove this feature in some near future release.
#MATLAB 2012 MOVE FILE IN EDITOR TILES CODE#
In addition, as far as I can tell, graphics.cursorbar is not used within the Matlab code corpus. The presented tooltip resembles one of the old data tips, not one of the modern ones. Once the cursor-bar is created, it can be dragged and moved via the mouse cursor, as the following code snippet and animated gif show:Ĭomments within the internal code suggest that graphics.cursorbar has been around since 2003 at least, although I have not checked such old releases. The cursorbar handle can be customized using properties such as BottomMarker, TopMarker, CursorLineColor, CursorLineStyle, CursorLineWidth, TargetMarkerSize, TargetMarkerStyle, ShowText, Orientation, Position (Position is a hidden property) etc., as well as the regular HG properties ( UserData, Visibility, Parent etc.). We initialize a graphics.cursorbar object by supplying an axes (not very useful) or plot-line handle (more useful). It is one of the earliest examples of Matlab’s old class system ( schema-based). It has several advantages over DataMatrix, being more customizable in the cross-hairs and data marker, although not enabling to customize the tooltip text nor to present both cross-hairs (only horizontal/vertical, not both). graphics.cursorbar is an internal Matlab object, that is undocumented and unsupported. When I created DataMatrix in 2007, I had no idea that graphics.cursorbar already existed. DataMatrix is actually based mostly on fully-documented stuff: the undocumented aspects are secondary to the main program flow and mostly just ensure old releases compatibility and correct behavior in the presence of some figure modes.

DataMatrix: customizable data tooltip & cross-hairsĭataMatrix displays matlab’s standard data-cursor tooltip together with dotted cross-hairs, both of which move with the mouse pointer.
