|
33 | 33 |
|
34 | 34 | import warnings |
35 | 35 |
|
36 | | -from .plot import QwtPlot |
37 | | -from .symbol import QwtSymbol as QSbl # see deprecated section |
38 | | -from .scale_engine import QwtLinearScaleEngine, QwtLogScaleEngine |
39 | | -from .text import QwtText |
40 | | -from .plot_canvas import QwtPlotCanvas |
41 | | -from .plot_curve import QwtPlotCurve as QPC # see deprecated section |
42 | | -from .plot_curve import QwtPlotItem |
43 | | -from .scale_map import QwtScaleMap |
44 | | -from .interval import QwtInterval |
45 | | -from .legend import QwtLegend, QwtLegendData, QwtLegendLabel |
46 | | -from .plot_marker import QwtPlotMarker |
47 | | -from .plot_grid import QwtPlotGrid as QPG # see deprecated section |
48 | | -from .color_map import QwtLinearColorMap |
49 | | - |
50 | | -from .toqimage import array_to_qimage as toQImage |
51 | | - |
52 | | -from .scale_div import QwtScaleDiv |
53 | | -from .scale_draw import QwtScaleDraw |
54 | | -from .scale_draw import QwtAbstractScaleDraw |
55 | | -from .painter import QwtPainter |
56 | | - |
57 | | -from .plot_series import ( |
| 36 | +from qwt.plot import QwtPlot |
| 37 | +from qwt.symbol import QwtSymbol as QSbl # see deprecated section |
| 38 | +from qwt.scale_engine import QwtLinearScaleEngine, QwtLogScaleEngine |
| 39 | +from qwt.text import QwtText |
| 40 | +from qwt.plot_canvas import QwtPlotCanvas |
| 41 | +from qwt.plot_curve import QwtPlotCurve as QPC # see deprecated section |
| 42 | +from qwt.plot_curve import QwtPlotItem |
| 43 | +from qwt.scale_map import QwtScaleMap |
| 44 | +from qwt.interval import QwtInterval |
| 45 | +from qwt.legend import QwtLegend, QwtLegendData, QwtLegendLabel |
| 46 | +from qwt.plot_marker import QwtPlotMarker |
| 47 | +from qwt.plot_grid import QwtPlotGrid as QPG # see deprecated section |
| 48 | +from qwt.color_map import QwtLinearColorMap |
| 49 | + |
| 50 | +from qwt.toqimage import array_to_qimage as toQImage |
| 51 | + |
| 52 | +from qwt.scale_div import QwtScaleDiv |
| 53 | +from qwt.scale_draw import QwtScaleDraw |
| 54 | +from qwt.scale_draw import QwtAbstractScaleDraw |
| 55 | +from qwt.painter import QwtPainter |
| 56 | + |
| 57 | +from qwt.plot_series import ( |
58 | 58 | QwtSeriesData, |
59 | 59 | QwtPointArrayData, |
60 | 60 | QwtSeriesStore, |
61 | 61 | QwtPlotSeriesItem, |
62 | 62 | ) |
63 | 63 |
|
64 | | -from .plot_renderer import QwtPlotRenderer |
| 64 | +from qwt.plot_renderer import QwtPlotRenderer |
65 | 65 |
|
66 | | -from .plot_directpainter import QwtPlotDirectPainter |
| 66 | +from qwt.plot_directpainter import QwtPlotDirectPainter |
67 | 67 |
|
68 | 68 |
|
69 | 69 | ## ============================================================================ |
@@ -127,7 +127,7 @@ def draw(self, painter, *args): |
127 | 127 | "please rely on `drawSymbol` and `drawSymbols` instead", |
128 | 128 | RuntimeWarning, |
129 | 129 | ) |
130 | | - from .qt.QtCore import QPointF |
| 130 | + from qtpy.QtCore import QPointF |
131 | 131 |
|
132 | 132 | if len(args) == 2: |
133 | 133 | self.drawSymbols(painter, [QPointF(*args)]) |
|
0 commit comments