Skip to content

Commit

Permalink
Fixed doc warnings
Browse files Browse the repository at this point in the history
QwtScaleMap.transform multiple signatures
  • Loading branch information
PierreRaybaut committed Oct 16, 2023
1 parent e234b60 commit ffba03e
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions qwt/scale_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
:members:
"""

from qwt._math import qwtFuzzyCompare
from qtpy.QtCore import QPointF, QRectF

from qtpy.QtCore import QRectF, QPointF
from qwt._math import qwtFuzzyCompare


class QwtScaleMap(object):
Expand Down Expand Up @@ -223,31 +223,23 @@ def updateFactor(self):

def transform(self, *args):
"""
Transform a rectangle from scale to paint coordinates
.. py:method:: transform(scalar)
:param float scalar: Scalar
.. py:method:: transform(xMap, yMap, rect)
Transform a rectangle from scale to paint coordinates.
Transform a rectangle from scale to paint coordinates
Transfom a scalar:
:param qwt.scale_map.QwtScaleMap xMap: X map
:param qwt.scale_map.QwtScaleMap yMap: Y map
:param QRectF rect: Rectangle in paint coordinates
:param float scalar: Scalar
.. py:method:: transform(xMap, yMap, pos)
Transfom a rectangle:
Transform a point from scale to paint coordinates
:param qwt.scale_map.QwtScaleMap xMap: X map
:param qwt.scale_map.QwtScaleMap yMap: Y map
:param QRectF rect: Rectangle in paint coordinates
:param qwt.scale_map.QwtScaleMap xMap: X map
:param qwt.scale_map.QwtScaleMap yMap: Y map
:param QPointF pos: Position in scale coordinates
Transfom a point:
Scalar: scalemap.transform(scalar)
Point (QPointF): scalemap.transform(xMap, yMap, pos)
Rectangle (QRectF): scalemap.transform(xMap, yMap, rect)
:param qwt.scale_map.QwtScaleMap xMap: X map
:param qwt.scale_map.QwtScaleMap yMap: Y map
:param QPointF pos: Position in scale coordinates
.. seealso::
Expand Down

0 comments on commit ffba03e

Please sign in to comment.