|
13 | 13 | :members: |
14 | 14 | """ |
15 | 15 |
|
16 | | -from qwt._math import qwtFuzzyCompare |
| 16 | +from qtpy.QtCore import QPointF, QRectF |
17 | 17 |
|
18 | | -from qtpy.QtCore import QRectF, QPointF |
| 18 | +from qwt._math import qwtFuzzyCompare |
19 | 19 |
|
20 | 20 |
|
21 | 21 | class QwtScaleMap(object): |
@@ -223,31 +223,23 @@ def updateFactor(self): |
223 | 223 |
|
224 | 224 | def transform(self, *args): |
225 | 225 | """ |
226 | | - Transform a rectangle from scale to paint coordinates |
227 | | -
|
228 | | - .. py:method:: transform(scalar) |
229 | | -
|
230 | | - :param float scalar: Scalar |
231 | | -
|
232 | | - .. py:method:: transform(xMap, yMap, rect) |
| 226 | + Transform a rectangle from scale to paint coordinates. |
233 | 227 |
|
234 | | - Transform a rectangle from scale to paint coordinates |
| 228 | + Transfom a scalar: |
235 | 229 |
|
236 | | - :param qwt.scale_map.QwtScaleMap xMap: X map |
237 | | - :param qwt.scale_map.QwtScaleMap yMap: Y map |
238 | | - :param QRectF rect: Rectangle in paint coordinates |
| 230 | + :param float scalar: Scalar |
239 | 231 |
|
240 | | - .. py:method:: transform(xMap, yMap, pos) |
| 232 | + Transfom a rectangle: |
241 | 233 |
|
242 | | - Transform a point from scale to paint coordinates |
| 234 | + :param qwt.scale_map.QwtScaleMap xMap: X map |
| 235 | + :param qwt.scale_map.QwtScaleMap yMap: Y map |
| 236 | + :param QRectF rect: Rectangle in paint coordinates |
243 | 237 |
|
244 | | - :param qwt.scale_map.QwtScaleMap xMap: X map |
245 | | - :param qwt.scale_map.QwtScaleMap yMap: Y map |
246 | | - :param QPointF pos: Position in scale coordinates |
| 238 | + Transfom a point: |
247 | 239 |
|
248 | | - Scalar: scalemap.transform(scalar) |
249 | | - Point (QPointF): scalemap.transform(xMap, yMap, pos) |
250 | | - Rectangle (QRectF): scalemap.transform(xMap, yMap, rect) |
| 240 | + :param qwt.scale_map.QwtScaleMap xMap: X map |
| 241 | + :param qwt.scale_map.QwtScaleMap yMap: Y map |
| 242 | + :param QPointF pos: Position in scale coordinates |
251 | 243 |
|
252 | 244 | .. seealso:: |
253 | 245 |
|
|
0 commit comments