Inherits from
- AbstractOverlay: enthought.chaco.abstract_overlay.AbstractOverlay
Attributes
- axis_line_color
The color of the axis line.
axis_line_color = ColorTrait('black') - axis_line_style
The dash style of the axis line.
axis_line_style = LineStyle('solid')
- axis_line_visible
Is the axis line visible?
axis_line_visible = Bool(True)
- axis_line_weight
The line thickness (in pixels) of the axis line.
axis_line_weight = Float(1.0)
- bgcolor
Background color (overrides AbstractOverlay). Axes usually let the color of the container show through.
bgcolor = ColorTrait('transparent') - ensure_labels_bounded
Does the axis ensure that its end labels fall within its bounding area?
ensure_labels_bounded = Bool(False)
- ensure_ticks_bounded
Does the axis prevent the ticks from being rendered outside its bounds? This flag is off by default because the standard axis does render ticks that encroach on the plot area.
ensure_ticks_bounded = Bool(False)
- mapper
The mapper that drives this axis.
mapper = Instance(AbstractMapper)
- markers
Not used right now.
markers = Any
- orientation
The location of the axis relative to the plot. This determines where the axis title is located relative to the axis line.
orientation = Enum('top', 'bottom', 'left', 'right')
- resizable
Dimensions that the axis is resizable in (overrides PlotComponent). Typically, axes are resizable in both dimensions.
resizable = 'hv'
- small_haxis_style
A special version of the axis line that is more useful for geophysical plots.
small_haxis_style = Bool(False)
- tick_color
The color of the ticks.
tick_color = ColorTrait('black') - tick_generator
A callable that implements the AbstractTickGenerator interface.
tick_generator = Instance(AbstractTickGenerator)
- tick_in
The number of pixels by which the ticks extend into the plot area.
tick_in = Int(5)
- tick_interval
The dataspace interval between ticks.
tick_interval = Trait('auto', 'auto', Float)
- tick_label_color
The color of the tick labels.
tick_label_color = ColorTrait('black') - tick_label_font
The font of the tick labels.
tick_label_font = KivaFont('modern 10')
- tick_label_formatter
A callable that is passed the numerical value of each tick label and that returns a string.
tick_label_formatter = Callable(DEFAULT_TICK_FORMATTER)
- tick_out
The number of pixels by which the ticks extend into the label area.
tick_out = Int(5)
- tick_visible
Are ticks visible at all?
tick_visible = Bool(True)
- tick_weight
The thickness (in pixels) of each tick.
tick_weight = Float(1.0)
- ticklabel_cache
ticklabel_cache = List
- title
The text of the axis title.
title = Trait('', Str, Unicode)
- title_color
The color of the title.
title_color = ColorTrait('black') - title_font
The font of the title.
title_font = KivaFont('modern 12')
- title_spacing
The spacing between the axis line and the title
title_spacing = Trait('auto', 'auto', Float)
- updated
Fired when the axis's range bounds change.
updated = Event
Inherited from base classes
- accepts_focus
- active_tool
- aspect_ratio
- auto_center
- auto_handle_event
- backbuffer_padding
- border_color
- border_dash
- border_visible
- border_width
- bounds
- classes
- container
- controller
- cursor_color
- cursor_style
- draw_order
- draw_valid
- drawn_outer_bounds
- drawn_outer_position
- event_state
- fill_padding
- get
- height
- hpadding
- id
- inset_border
- invisible_layout
- layout_needed
- on_trait_event
- outer_bounds
- outer_height
- outer_position
- outer_width
- outer_x
- outer_x2
- outer_y
- outer_y2
- overlay_border
- overlays
- padding
- padding_accepts_focus
- padding_bottom
- padding_left
- padding_right
- padding_top
- pointer
- position
- set
- tools
- tooltip
- trait_added
- trait_modified
- underlays
- unified_draw
- use_backbuffer
- use_draw_order
- use_selection
- viewports
- visible
- vpadding
- width
- window
- wrappers
- x
- x2
- y
- y2
Method summary
- __getstate__(self)
- __init__(self, component = None, **kwargs)
- __setstate__(self, state)
- invalidate(self)
- mapper_updated(self)
- overlay(self, component, gc, view_bounds = None, mode = 'normal')
- traits_view(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- as_coordinates(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- cleanup(self, window)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- dispatch(self, event, suffix)
- do_layout(self, size = None, force = False)
- draw(self, gc, view_bounds = None, mode = 'default')
- draw_select_box(self, gc, position, bounds, width, dash, inset, color, bgcolor, marker_size)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- get_absolute_coords(self, *coords)
- get_event_transform(self, event = None, suffix = '')
- get_preferred_size(self)
- has_traits_interface(self, *interfaces)
- invalidate_and_redraw(self)
- invalidate_draw(self, damaged_regions = None, self_relative = False)
- is_in(self, x, y)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- request_redraw(self)
- reset_traits(self, traits = None, **metadata)
- set_outer_bounds(self, ndx, val)
- set_outer_position(self, ndx, val)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- __getstate__(self)
- __init__(self, component = None, **kwargs)
- __setstate__(self, state)
- invalidate(self)
Invalidates the pre-computed layout and scaling data.
- mapper_updated(self)
Event handler that is bound to this axis's mapper's updated event
- overlay(self, component, gc, view_bounds = None, mode = 'normal')
Draws this component overlaid on another component.
Overrides AbstractOverlay.
- traits_view(self)
Returns a View instance for use with Traits UI. This method is called automatically be the Traits framework when .edit_traits() is invoked.