Package Scientific :: Package TkWidgets :: Module TkPlotCanvas :: Class PolyMarker
[hide private]
[frames] | no frames]

Class PolyMarker



PolyPoints --+
             |
            PolyMarker

Series of markers

Instance Methods [hide private]
  __init__(self, points, **attr)
  _circle(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')
  _cross(self, c, xc, yc, size=1, fill='black', outline=None, fillstyle='')
  _dot(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')
  _drawmarkers(self, c, coords, marker='circle', color='black', fillstyle='', fillcolor='', size=2)
  _plus(self, c, xc, yc, size=1, fill='black', outline=None, fillstyle='')
  _square(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')
  _triangle(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')
  _triangle_down(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')
  draw(self, canvas, bbox)

Inherited from PolyPoints: boundingBox, scaleAndShift, writeToFile


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

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 in Tk, defines the color of the line forming the marker (default: "black")
  • fillcolor - a string whose value is one of the color names defined in Tk, defines the color of the interior of the marker (default: "black")
  • marker - one of 'circle' (default), 'dot', 'square', 'triangle', 'triangle_down', 'cross', 'plus'
Overrides: PolyPoints.__init__

_circle(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')

 

_cross(self, c, xc, yc, size=1, fill='black', outline=None, fillstyle='')

 

_dot(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')

 

_drawmarkers(self, c, coords, marker='circle', color='black', fillstyle='', fillcolor='', size=2)

 

_plus(self, c, xc, yc, size=1, fill='black', outline=None, fillstyle='')

 

_square(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')

 

_triangle(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')

 

_triangle_down(self, c, xc, yc, size=1, fill='', outline='black', fillstyle='')

 

draw(self, canvas, bbox)

 

Class Variable Details [hide private]

_attributes

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