Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chaco/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def _do_layout(self, *args, **kw):

Overrides Component.
"""
if self.use_draw_order and self.component is not None:
if self.component is not None:
self._layout_as_overlay(*args, **kw)
else:
super(PlotAxis, self)._do_layout(*args, **kw)
Expand Down
14 changes: 0 additions & 14 deletions chaco/base_plot_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ class BasePlotContainer(Container):
# Deprecated traits
# ------------------------------------------------------------------------

#: Deprecated flag to indicate that a component needed to do old-style
#: drawing. Unused by any recent Chaco component.
use_draw_order = Bool(True)

#: Deprecated property for accessing the components in the container.
plot_components = Property

Expand All @@ -64,13 +60,3 @@ def _set_plot_components(self, new):
DeprecationWarning,
)
self._components = new

def _use_draw_order_changed(self, old, new):
"""Handler to catch the case when someone is trying to use the
old-style drawing mechanism, which is now unsupported.
"""
if new == False:
raise RuntimeError(
"The old-style drawing mechanism is no longer "
"supported in Chaco."
)
2 changes: 1 addition & 1 deletion chaco/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def do_layout(self, *args, **kw):

Overrides PlotComponent.
"""
if self.use_draw_order and self.component is not None:
if self.component is not None:
self._layout_as_overlay(*args, **kw)
else:
super(PlotGrid, self).do_layout(*args, **kw)
Expand Down
14 changes: 0 additions & 14 deletions chaco/plot_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ class PlotComponent(Component):
#: The default draw layer for Chaco plot components is the "plot" layer
draw_layer = Str("plot")

#: Draw layers in **draw_order**? If False, use _do_draw() (for backwards
#: compatibility).
use_draw_order = Bool(True)

def _use_draw_order_changed(self, old, new):
"""Handler to catch the case when someone is trying to use the
old-style drawing mechanism, which is now unsupported.
"""
if new == False:
raise RuntimeError(
"The old-style drawing mechanism is no longer "
"supported in Chaco."
)

@observe("+requires_redraw")
def _plot_component_invalidated(self, event):
self.invalidate_and_redraw()