Cicode Programming Reference > Cicode Function Categories > Plot Functions Introduction > PlotGetMarker

PlotGetMarker

Gets the marker number of a symbol. The symbol needs to be a symbol and registered with the PlotSetMarker() function.

Syntax

PlotGetMarker(sSymbolName)

sSymbolName:

The library name and symbol name ("Library.Symbol") of the symbol that is registered as a marker.

Return Value

The marker number if successful, otherwise -1 is returned.

Related Functions

PlotMarker, PlotScaleMarker, PlotSetMarker

Example

/*Assume that the symbol was registered by PlotSetMarker function */
PlotSetMarker(20,"Global.Hourglass");
/*Later on, this symbol can be used as shown below*/
hPlot = PlotOpen(36,"Display",1);
..
/* Display red hourglass as marker at point (100,200) on AN36. */
MarkerNo = PlotGetMarker("Global.Hourglass");
PlotMarker(hPlot,MarkerNo,red,1,1,100,200);
..
PlotClose(hPlot);

See Also

Plot Functions