API Reference for Enthought Tool Suite 3.0.1
Defines markers classes, used by a variety of renderers.
String names for marker types.
marker_names = ('square', 'circle', 'triangle', 'inverted_triangle', 'plus', 'cross', 'diamond', 'dot', 'pixel')
A mapped trait that allows string naming of marker classes.
marker_trait = Trait('square', MarkerNameDict, editor = EnumEditor(values = marker_names))
Mapping of marker string names to classes.
MarkerNameDict = { Const('square') : Name('SquareMarker'), Const('circle') : Name('CircleMarker'), Const('triangle') : Name('TriangleMarker'), Const('inverted_triangle') : Name('Inverted_TriangleMarker'), Const('plus') : Name('PlusMarker'), Const('cross') : Name('CrossMarker'), Const('diamond') : Name('DiamondMarker'), Const('dot') : Name('DotMarker'), Const('pixel') : Name('PixelMarker'), Const('custom') : Name('CustomMarker') }
| Local name | Refers to |
|---|---|
| array | numpy.array |
| Bool | enthought.traits.trait_types.Bool |
| CIRCLE_MARKER | enthought.kiva.constants.CIRCLE_MARKER |
| CROSS_MARKER | enthought.kiva.constants.CROSS_MARKER |
| DIAMOND_MARKER | enthought.kiva.constants.DIAMOND_MARKER |
| DOT_MARKER | enthought.kiva.constants.DOT_MARKER |
| EnumEditor | enthought.traits.ui.editors.EnumEditor |
| FILL_STROKE | enthought.kiva.constants.FILL_STROKE |
| HasTraits | enthought.traits.has_traits.HasTraits |
| Instance | enthought.traits.trait_types.Instance |
| INVERTED_TRIANGLE_MARKER | enthought.kiva.constants.INVERTED_TRIANGLE_MARKER |
| NO_MARKER | enthought.kiva.constants.NO_MARKER |
| pi | numpy.pi |
| PIXEL_MARKER | enthought.kiva.constants.PIXEL_MARKER |
| PLUS_MARKER | enthought.kiva.constants.PLUS_MARKER |
| SQUARE_MARKER | enthought.kiva.constants.SQUARE_MARKER |
| STROKE | enthought.kiva.constants.STROKE |
| Trait | enthought.traits.traits.Trait |
| TRIANGLE_MARKER | enthought.kiva.constants.TRIANGLE_MARKER |
© Copyright 2002-2008 Enthought, Inc.