This is documentation for Orange 2.7. For the latest documentation, see Orange 3.

Point (owpoint)

class OrangeWidgets.plot.owpoint.OWPoint

Represents a point on the plot, usually a part of a curve, or in a legend item.

The point is identified with its symbol, color, size, label, and state, where the state can be ether unselected (default), marker, or selected. All these attributes can be changed and retrieved after the point is constructed. For example, color can be set with set_color(), while the current color is returned by color(). There are similarily named function for the other attributes.

__init__(symbol, color, size)
Parameters:
  • symbol (int) – The point symbol.
  • color (QColor) – The point color.
  • size (int) – The point size.
set_color(color)

Sets the point’s color to color

color()
Returns:the point’s color
set_size(size)

Sets the point’s size to size

size()
Returns:the point’s size
set_symbol(symbol)

Sets the point’s symbol to symbol

symbol()
Returns:the point’s symbol
set_selected(selected)

Sets the point’s selected state to selected

is_selected()
Returns:True if the point is selected, False otherwise.
set_marked(marked)

Sets the point’s marked state to marked

is_marked()
Returns:True if the point is marked, False otherwise.
set_label(label)

Sets the point’s label to label. The label is displayed under the symbol.

label()
Returns:The point`s label, set with set_label()
Return type:str