Is there any possibility to change marker form and size for data cursor in Matlab? I mean it is black and square by default. I would like to change it to blue and circle, for example.
I've found only how to customize text of data tips.
Thank you.
Is there any possibility to change marker form and size for data cursor in Matlab? I mean it is black and square by default. I would like to change it to blue and circle, for example.
I've found only how to customize text of data tips.
Thank you.
yes it is possible by set
Pointer
property offigure
tocustom
and then set the value forPointerShapeCData
as per your choice but you can't change to RGB color format. BecausePointerShapeCData
property accept value 1 and 2. value 1 means black and 2 means white.for example :
Yes - marker options are included in the properties of the undocumented
graphics.datatip
object class.These objects are accessible as hidden properties of the
graphics.datacursormanager
objects accessible through the documenteddatacursormode
function. The.DataCursors
property contains an array of these objects for each Data Cursor in the figure and.CurrentDataCursor
property contains the object for the current one.To take your example, to change the marker for the current Data Cursor of the current figure to a blue circle, you can do as follows:
More detailed information about the undocumented functionality can be found at http://undocumentedmatlab.com/blog/controlling-plot-data-tips
Hope this helps..... For white background and classic look....
set(alldatacursors,'FontSize',11)
set(alldatacursors,'FontName','Times')
set(alldatacursors,'BackgroundColor','w');