Inherits from
- Template: enthought.template.template_impl.Template
Attributes
- color
The fill color of the marker:
color = TColor('red', event = 'update')
- line_width
The thickness, in pixels, of the outline to draw around the marker. If this is 0, no outline will be drawn.
line_width = TRange(0.0, 5.0, 1.0)
- marker
The type of marker to use. This is a mapped trait using strings as the keys:
marker = marker_trait(template = 'copy', event = 'update')
- marker_size
The pixel size of the marker (doesn't include the thickness of the outline):
marker_size = TRange(1, 5, 1, event = 'update')
- options_view
The scatter plot options view:
options_view = View(VGroup(VGroup(Label('Scatter Plot Options', item_theme = Theme('@GBB', alignment = 'center')), show_labels = False), VGroup(Item('title', editor = TextEditor()), Item('marker'), Item('marker_size', editor = ThemedSliderEditor()), Item('line_width', label = 'Line Width', editor = ThemedSliderEditor()), Item('spacing', editor = ThemedSliderEditor()), Item('color', label = 'Fill Color'), Item('outline_color', label = 'Outline Color'), group_theme = Theme('@GF5', margins = (-Const(5), -Const(1))), item_theme = Theme('@G0B', margins = 0))))
- outline_color
The color of the outline to draw around the marker
outline_color = TColor('black', event = 'update')
- plot
plot = TDerived
- scatter_plot_1
The contained scatter plots:
scatter_plot_1 = TInstance(ScatterPlot, ())
- scatter_plot_2
scatter_plot_2 = TInstance(ScatterPlot, ())
- spacing
The amount of space between plots:
spacing = TRange(0.0, 20.0, 0.0)
- template_view
The scatter plot view:
template_view = View(VGroup(Item('title', show_label = False, style = 'readonly', editor = ThemedTextEditor(theme = Theme('@GBB', alignment = 'center'))), Item('plot', show_label = False, resizable = True, editor = EnableEditor(), item_theme = Theme('@GF5', margins = 0))), resizable = True)
- title
The title of the plot:
title = TStr('Dual Scatter Plots')
Inherited from base classes
Method summary
- activate_template(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- 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)
- 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)
- 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)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- 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 = '')
- reset_traits(self, traits = None, **metadata)
- 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
- activate_template(self)
Converts all contained 'TDerived' objects to real objects using the template traits of the object. This method must be overridden in subclasses.
Returns
None