Skip to content

Marker Class

The Marker class represents a marker on a graph. It can be used to customize common marker style and options. Its position can be set through value, point1, point2, xlabelposition and ylabelposition attributes, depending its type.

This class is abstract and markers objects will be of concrete sub classes.

Some attributes can be read and changed with get and set :

  • label : The text to display on the marker. Can contain special sequences for markers. Use \n to add multiple lines of text.
  • labelcolor : The marker label color.
  • labelfont : The font to use for the label (can add bold,italic,underline,overstrike).
  • lock : The position to lock the label to. One of LEFT or RIGHT for horizontal markers, TOP or BOTTOM for vertical markers and TOPLEFT, TOP, TOPRIGHT, LEFT, RIGHT, BOTTOMLEFT, BOTTOM and BOTTOMRIGHT for the text, point and 2point markers. All markers can be locked to the graph and can no longer be moved.

Public Functions

get{ attribute }
set{ attribute value }


Detailed Functions Descriptions

get

get{ attribute }

Get an attribute of the marker. See the list of attributes in the Marker description.

Parameters :

  • attribute : The attribute name to fetch.

Return : The attribute value.

set

set{ attribute value }

Set an attribute of the marker. See the list of attributes in the Marker description.

Parameters :

  • attribute : The attribute name to set.

  • value : The value to set to the attribute.