API Reference for Enthought Tool Suite 3.0.1
This module is a cut-n-paste job of axis.py. This is meant to be a a temporary solution until we merge the Scales functionality into the mainline of Chaco development.
AxisView = View(VGroup(Group(Item('title', label = 'Title', editor = TextEditor()), Item('title_color', label = 'Color', style = 'custom'), Item('tick_interval', label = 'Interval', editor = TextEditor(evaluate = float_or_auto)), label = 'Main'), Group(Item('tick_color', label = 'Color', style = 'custom'), Item('tick_weight', label = 'Thickness'), Item('tick_label_color', label = 'Label color', style = 'custom'), HGroup(Item('tick_in', label = 'Tick in'), Item('tick_out', label = 'Tick out')), Item('tick_visible', label = 'Visible'), label = 'Ticks'), Group(Item('axis_line_color', label = 'Color', style = 'custom'), Item('axis_line_weight', label = 'Thickness'), Item('axis_line_visible', label = 'Visible'), label = 'Line')), buttons = [ 'OK', 'Cancel' ])
Validator function that returns val if val is either a number or the word 'auto'. This is used as a validator for the text editor in the traits UI for the tick_interval trait.
© Copyright 2002-2008 Enthought, Inc.