|
3 | 3 | # This just imports the key datamodel classes into the top-level package |
4 | 4 | # namespace for convenience. |
5 | 5 |
|
6 | | -from base import NumericalSequenceTrait, PointTrait, ImageTrait, DimensionTrait, \ |
| 6 | +from .base import NumericalSequenceTrait, PointTrait, ImageTrait, DimensionTrait, \ |
7 | 7 | SortOrderTrait, bin_search, reverse_map_1d, right_shift, \ |
8 | 8 | left_shift, sort_points, find_runs, arg_find_runs, \ |
9 | 9 | point_line_distance |
10 | 10 |
|
11 | 11 | # Data model |
12 | | -from abstract_data_source import AbstractDataSource |
13 | | -from array_data_source import ArrayDataSource |
14 | | -from grid_data_source import GridDataSource |
15 | | -from image_data import ImageData |
16 | | -from multi_array_data_source import MultiArrayDataSource |
17 | | -from point_data_source import PointDataSource |
18 | | -from abstract_data_range import AbstractDataRange |
19 | | -from base_data_range import BaseDataRange |
20 | | -from data_range_1d import DataRange1D |
21 | | -from data_range_2d import DataRange2D |
| 12 | +from .abstract_data_source import AbstractDataSource |
| 13 | +from .array_data_source import ArrayDataSource |
| 14 | +from .grid_data_source import GridDataSource |
| 15 | +from .image_data import ImageData |
| 16 | +from .multi_array_data_source import MultiArrayDataSource |
| 17 | +from .point_data_source import PointDataSource |
| 18 | +from .abstract_data_range import AbstractDataRange |
| 19 | +from .base_data_range import BaseDataRange |
| 20 | +from .data_range_1d import DataRange1D |
| 21 | +from .data_range_2d import DataRange2D |
22 | 22 |
|
23 | 23 | # Mappers |
24 | | -from abstract_mapper import AbstractMapper |
25 | | -from base_1d_mapper import Base1DMapper |
26 | | -from grid_mapper import GridMapper |
27 | | -from log_mapper import LogMapper |
28 | | -from linear_mapper import LinearMapper |
29 | | -from color_mapper import ColorMapper, ColorMapTemplate |
30 | | -from discrete_color_mapper import DiscreteColorMapper |
31 | | -from transform_color_mapper import TransformColorMapper |
| 24 | +from .abstract_mapper import AbstractMapper |
| 25 | +from .base_1d_mapper import Base1DMapper |
| 26 | +from .grid_mapper import GridMapper |
| 27 | +from .log_mapper import LogMapper |
| 28 | +from .linear_mapper import LinearMapper |
| 29 | +from .color_mapper import ColorMapper, ColorMapTemplate |
| 30 | +from .discrete_color_mapper import DiscreteColorMapper |
| 31 | +from .transform_color_mapper import TransformColorMapper |
32 | 32 |
|
33 | 33 | # Colormaps and color palettes |
34 | | -from default_colormaps import * |
35 | | -from default_colors import * |
| 34 | +from .default_colormaps import * |
| 35 | +from .default_colors import * |
36 | 36 |
|
37 | 37 | # Visual components |
38 | | -from abstract_plot_renderer import AbstractPlotRenderer |
39 | | -from abstract_overlay import AbstractOverlay |
40 | | -from base_plot_container import BasePlotContainer |
41 | | -from base_plot_frame import BasePlotFrame |
42 | | -from cross_plot_frame import CrossPlotFrame |
43 | | -from data_view import DataView |
44 | | -from simple_plot_frame import SimplePlotFrame |
45 | | -from plot_component import PlotComponent |
46 | | -from plot_graphics_context import PlotGraphicsContext, PlotGraphicsContextMixin |
47 | | -from selectable_overlay_container import SelectableOverlayPlotContainer |
48 | | -from plot_containers import OverlayPlotContainer, HPlotContainer, VPlotContainer, \ |
| 38 | +from .abstract_plot_renderer import AbstractPlotRenderer |
| 39 | +from .abstract_overlay import AbstractOverlay |
| 40 | +from .base_plot_container import BasePlotContainer |
| 41 | +from .base_plot_frame import BasePlotFrame |
| 42 | +from .cross_plot_frame import CrossPlotFrame |
| 43 | +from .data_view import DataView |
| 44 | +from .simple_plot_frame import SimplePlotFrame |
| 45 | +from .plot_component import PlotComponent |
| 46 | +from .plot_graphics_context import PlotGraphicsContext, PlotGraphicsContextMixin |
| 47 | +from .selectable_overlay_container import SelectableOverlayPlotContainer |
| 48 | +from .plot_containers import OverlayPlotContainer, HPlotContainer, VPlotContainer, \ |
49 | 49 | GridPlotContainer |
50 | 50 | GridContainer = GridPlotContainer |
51 | 51 |
|
52 | | -from label import Label |
53 | | -from plot_label import PlotLabel |
54 | | -from legend import Legend |
55 | | -from tooltip import ToolTip |
56 | | -from data_label import DataLabel |
57 | | -from lasso_overlay import LassoOverlay |
58 | | -from color_bar import ColorBar |
59 | | -from text_box_overlay import TextBoxOverlay |
60 | | -from scatter_inspector_overlay import ScatterInspectorOverlay |
| 52 | +from .label import Label |
| 53 | +from .plot_label import PlotLabel |
| 54 | +from .legend import Legend |
| 55 | +from .tooltip import ToolTip |
| 56 | +from .data_label import DataLabel |
| 57 | +from .lasso_overlay import LassoOverlay |
| 58 | +from .color_bar import ColorBar |
| 59 | +from .text_box_overlay import TextBoxOverlay |
| 60 | +from .scatter_inspector_overlay import ScatterInspectorOverlay |
61 | 61 |
|
62 | 62 | # Renderers |
63 | | -from barplot import BarPlot |
64 | | -from base_1d_plot import Base1DPlot |
65 | | -from base_2d_plot import Base2DPlot |
66 | | -from base_xy_plot import BaseXYPlot |
67 | | -from scatterplot import ScatterPlot, render_markers |
68 | | -from image_plot import ImagePlot |
69 | | -from cmap_image_plot import CMapImagePlot |
70 | | -from contour_line_plot import ContourLinePlot |
71 | | -from contour_poly_plot import ContourPolyPlot |
72 | | -from lineplot import LinePlot |
73 | | -from colormapped_scatterplot import ColormappedScatterPlot |
74 | | -from colormapped_selection_overlay import ColormappedSelectionOverlay |
75 | | -from polygon_plot import PolygonPlot |
76 | | -from errorbar_plot import ErrorBarPlot |
77 | | -from filled_line_plot import FilledLinePlot |
78 | | -from quiverplot import QuiverPlot |
79 | | -from candle_plot import CandlePlot |
80 | | -from multi_line_plot import MultiLinePlot |
81 | | -from jitterplot import JitterPlot |
82 | | -from variable_size_scatterplot import VariableSizeScatterPlot |
83 | | -from horizon_plot import BandedMapper, HorizonPlot |
84 | | -from scatterplot_1d import ScatterPlot1D |
85 | | -from line_scatterplot_1d import LineScatterPlot1D |
86 | | -from text_plot_1d import TextPlot1D |
| 63 | +from .barplot import BarPlot |
| 64 | +from .base_1d_plot import Base1DPlot |
| 65 | +from .base_2d_plot import Base2DPlot |
| 66 | +from .base_xy_plot import BaseXYPlot |
| 67 | +from .scatterplot import ScatterPlot, render_markers |
| 68 | +from .image_plot import ImagePlot |
| 69 | +from .cmap_image_plot import CMapImagePlot |
| 70 | +from .contour_line_plot import ContourLinePlot |
| 71 | +from .contour_poly_plot import ContourPolyPlot |
| 72 | +from .lineplot import LinePlot |
| 73 | +from .colormapped_scatterplot import ColormappedScatterPlot |
| 74 | +from .colormapped_selection_overlay import ColormappedSelectionOverlay |
| 75 | +from .polygon_plot import PolygonPlot |
| 76 | +from .errorbar_plot import ErrorBarPlot |
| 77 | +from .filled_line_plot import FilledLinePlot |
| 78 | +from .quiverplot import QuiverPlot |
| 79 | +from .candle_plot import CandlePlot |
| 80 | +from .multi_line_plot import MultiLinePlot |
| 81 | +from .jitterplot import JitterPlot |
| 82 | +from .variable_size_scatterplot import VariableSizeScatterPlot |
| 83 | +from .horizon_plot import BandedMapper, HorizonPlot |
| 84 | +from .scatterplot_1d import ScatterPlot1D |
| 85 | +from .line_scatterplot_1d import LineScatterPlot1D |
| 86 | +from .text_plot_1d import TextPlot1D |
87 | 87 |
|
88 | 88 | # Plot factories |
89 | | -from plot_factory import create_bar_plot, create_line_plot, create_scatter_plot, \ |
| 89 | +from .plot_factory import create_bar_plot, create_line_plot, create_scatter_plot, \ |
90 | 90 | create_polar_plot, add_default_axes, add_default_grids |
91 | 91 |
|
92 | | -from abstract_plot_data import AbstractPlotData |
93 | | -from array_plot_data import ArrayPlotData |
94 | | -from data_frame_plot_data import DataFramePlotData |
95 | | -from plot import Plot |
96 | | -from toolbar_plot import ToolbarPlot |
| 92 | +from .abstract_plot_data import AbstractPlotData |
| 93 | +from .array_plot_data import ArrayPlotData |
| 94 | +from .data_frame_plot_data import DataFramePlotData |
| 95 | +from .plot import Plot |
| 96 | +from .toolbar_plot import ToolbarPlot |
97 | 97 |
|
98 | 98 | # Axis |
99 | | -from axis import PlotAxis, MinorPlotAxis |
100 | | -from label_axis import LabelAxis |
101 | | -from ticks import AbstractTickGenerator, DefaultTickGenerator, auto_ticks, auto_interval, \ |
| 99 | +from .axis import PlotAxis, MinorPlotAxis |
| 100 | +from .label_axis import LabelAxis |
| 101 | +from .ticks import AbstractTickGenerator, DefaultTickGenerator, auto_ticks, auto_interval, \ |
102 | 102 | tick_intervals, log_auto_ticks, auto_bounds, calc_bound |
103 | 103 |
|
104 | 104 | # Grid |
105 | | -from grid import PlotGrid |
| 105 | +from .grid import PlotGrid |
106 | 106 |
|
107 | 107 | # Style stuff |
108 | 108 | #from stylable import Stylable |
109 | 109 | #from stylesheets import Style, StyleSheet |
110 | 110 |
|
111 | 111 | # Tools |
112 | | -from abstract_controller import AbstractController |
| 112 | +from .abstract_controller import AbstractController |
113 | 113 |
|
114 | 114 | # Importing various symbols into the Chaco namespace for backwards |
115 | 115 | # compatibility. New code should directly import from Enable. |
|
0 commit comments