Package Scientific :: Package QtWidgets :: Module QtPlotCanvas :: Class PolyMarker
[hide private]
[frames] | no frames]

Class PolyMarker



PolyPoints --+
             |
            PolyMarker

Series of markers

Instance Methods [hide private]
  __init__(self, points, **attr)
  _circle(self, painter, xc, yc, size)
  _cross(self, painter, xc, yc, size)
  _dot(self, painter, xc, yc, size=1)
  _plus(self, painter, xc, yc, size)
  _square(self, painter, xc, yc, size)
  _triangle(self, painter, xc, yc, size)
  _triangle_down(self, painter, xc, yc, size)
  draw(self, painter, bbox)

Inherited from PolyPoints: boundingBox, scaleAndShift, writeToFile


Class Variables [hide private]
  _attributes = {'color': 'black', 'fillstyle': None, 'width': 1, 'f...

Method Details [hide private]

__init__(self, points, **attr)
(Constructor)

 
Parameters:
  • points - any sequence of (x, y) number pairs
  • attr - marker attributes
  • width - the line width for drawing the marker (default: 1)
  • color - a string whose value is one of the color names defined by X-Windows (default: "black")
  • fillcolor - a string whose value is one of the color names defined in X-Windows, defines the color of the interior of the marker (default: "black")
  • fillstyle - a Qt BrushStyle object (default: Qt.SolidPattern)
  • marker - one of 'circle' (default), 'dot', 'square', 'triangle', 'triangle_down', 'cross', 'plus'
Overrides: PolyPoints.__init__

_circle(self, painter, xc, yc, size)

 

_cross(self, painter, xc, yc, size)

 

_dot(self, painter, xc, yc, size=1)

 

_plus(self, painter, xc, yc, size)

 

_square(self, painter, xc, yc, size)

 

_triangle(self, painter, xc, yc, size)

 

_triangle_down(self, painter, xc, yc, size)

 

draw(self, painter, bbox)

 

Class Variable Details [hide private]

_attributes

Value:
{'color': 'black',
 'fillcolor': 'black',
 'fillstyle': None,
 'marker': 'circle',
 'size': 2,
 'width': 1}