Skip to content

Commit 7db7d34

Browse files
author
Poruri Sai Rahul
authored
Backport PR #786 and update changelog (#787)
* FIX : Address deprecation warnings because of moved modules in chaco (#786) This commit addresses deprecation warnings raised in chaco because of the recent moves in chaco i.e. chaco.plots and chaco.overlays modified: chaco/base_2d_plot.py modified: chaco/base_xy_plot.py modified: chaco/plot.py modified: chaco/selectable_legend.py modified: chaco/tests/test_array_or_none.py modified: chaco/tools/image_inspector_tool.py modified: chaco/tools/regression_lasso.py * DOC : Include #786 in changelog modified: CHANGES.txt
1 parent c0c1f28 commit 7db7d34

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Maintenance
125125
* Remove calls to Component._draw_component (#737)
126126
* Add new chaco.plots submodule (#738)
127127
* Use mock through unittest (#740)
128-
* Consolidate overlays into "chaco.overlays" (#741)
128+
* Consolidate overlays into "chaco.overlays" (#741, #786)
129129
* Replace bg_color with bgcolor (#742)
130130
* Revive ScalyPlot (#744)
131131
* Add/Update copyright headers (#755)

chaco/base_2d_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
# Local relative imports
2020
from .abstract_plot_renderer import AbstractPlotRenderer
2121
from .base import reverse_map_1d
22-
from .plot_label import PlotLabel
2322
from .grid_data_source import GridDataSource
2423
from .grid_mapper import GridMapper
2524
from .image_data import ImageData
25+
from .overlays.plot_label import PlotLabel
2626

2727

2828
class Base2DPlot(AbstractPlotRenderer):

chaco/base_xy_plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from .axis import PlotAxis
2727
from .base import point_line_distance, reverse_map_1d
2828
from .grid import PlotGrid
29-
from .plot_label import PlotLabel
29+
from .overlays.plot_label import PlotLabel
3030

3131

3232
class BaseXYPlot(AbstractPlotRenderer):

chaco/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
from .grid_data_source import GridDataSource
3434
from .grid_mapper import GridMapper
3535
from .image_data import ImageData
36-
from .legend import Legend
3736
from .linear_mapper import LinearMapper
3837
from .log_mapper import LogMapper
39-
from .plot_label import PlotLabel
38+
from .overlays.legend import Legend
39+
from .overlays.plot_label import PlotLabel
4040
from .plots.barplot import BarPlot
4141
from .plots.candle_plot import CandlePlot
4242
from .plots.colormapped_scatterplot import ColormappedScatterPlot

chaco/selectable_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from chaco.tools.select_tool import SelectTool
1212
from traits.api import List
1313

14-
from .legend import Legend
14+
from .overlays.legend import Legend
1515

1616

1717
class SelectableLegend(Legend, SelectTool):

chaco/tests/test_array_or_none.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
from chaco.array_data_source import ArrayDataSource
1717
from chaco.axis import PlotAxis
18-
from chaco.data_label import DataLabel
1918
from chaco.data_range_1d import DataRange1D
2019
from chaco.label_axis import LabelAxis
21-
from chaco.legend import Legend
2220
from chaco.linear_mapper import LinearMapper
21+
from chaco.overlays.data_label import DataLabel
22+
from chaco.overlays.legend import Legend
2323
from chaco.plots.scatterplot import ScatterPlot
2424

2525

chaco/tools/image_inspector_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
# Chaco imports
1919
from chaco.abstract_overlay import AbstractOverlay
20+
from chaco.overlays.text_box_overlay import TextBoxOverlay
2021
from chaco.plots.image_plot import ImagePlot
21-
from chaco.text_box_overlay import TextBoxOverlay
2222

2323

2424
class ImageInspectorTool(BaseTool):

chaco/tools/regression_lasso.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
from traits.api import Any, Float, Instance
2222

2323
# Chaco imports
24-
from chaco.lasso_overlay import LassoOverlay
2524
from chaco.label import Label
25+
from chaco.overlays.lasso_overlay import LassoOverlay
2626
from .lasso_selection import LassoSelection
2727

2828

0 commit comments

Comments
 (0)