Skip to content

Commit 769c14f

Browse files
committed
Fixed docstrings following "recent" change from absolute to relative imports
1 parent 0d9a900 commit 769c14f

23 files changed

+178
-178
lines changed

qwt/color_map.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class QwtColorMap(object):
153153
154154
.. seealso ::
155155
156-
:py:data:`.QwtScaleWidget`
156+
:py:data:`qwt.QwtScaleWidget`
157157
"""
158158

159159
# enum Format
@@ -168,7 +168,7 @@ def color(self, interval, value):
168168
"""
169169
Map a value into a color
170170
171-
:param .interval.QwtInterval interval: valid interval for value
171+
:param qwt.interval.QwtInterval interval: valid interval for value
172172
:param float value: value
173173
:return: the color corresponding to value
174174
@@ -191,7 +191,7 @@ def colorTable(self, interval):
191191
"""
192192
Build and return a color map of 256 colors
193193
194-
:param .interval.QwtInterval interval: range for the values
194+
:param qwt.interval.QwtInterval interval: range for the values
195195
:return: a color table, that can be used for a `QImage`
196196
197197
The color table is needed for rendering indexed images in combination

qwt/dyngrid_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# (see LICENSE file for more details)
77

88
"""
9-
.dyngrid_layout
9+
qwt.dyngrid_layout
1010
------------------
1111
1212
The `dyngrid_layout` module provides the `QwtDynGridLayout` class.

qwt/graphic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class QwtGraphic(QwtNullPaintDevice):
250250
251251
Copy constructor
252252
253-
:param .graphic.QwtGraphic other: Source
253+
:param qwt.graphic.QwtGraphic other: Source
254254
"""
255255

256256
# enum RenderHint

qwt/interval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def unite(self, other):
235235
"""
236236
Unite two intervals
237237
238-
:param .interval.QwtInterval other: other interval to united with
238+
:param qwt.interval.QwtInterval other: other interval to united with
239239
:return: united interval
240240
"""
241241
if not self.isValid():
@@ -280,7 +280,7 @@ def intersect(self, other):
280280
"""
281281
Intersect two intervals
282282
283-
:param .interval.QwtInterval other: other interval to intersect with
283+
:param qwt.interval.QwtInterval other: other interval to intersect with
284284
:return: intersected interval
285285
"""
286286
if not other.isValid() or not self.isValid():
@@ -326,7 +326,7 @@ def intersects(self, other):
326326
"""
327327
Test if two intervals overlap
328328
329-
:param .interval.QwtInterval other: other interval
329+
:param qwt.interval.QwtInterval other: other interval
330330
:return: True, when the intervals are intersecting
331331
"""
332332
if not other.isValid() or not self.isValid():

qwt/legend.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class QwtLegendData(object):
4545
4646
.. seealso::
4747
48-
:py:class:`.legend.QwtLegend`
48+
:py:class:`qwt.legend.QwtLegend`
4949
5050
.. note::
5151
@@ -214,15 +214,15 @@ def data(self):
214214
215215
.. seealso::
216216
217-
:py:meth:`setData()`, :py:meth:`.plot.QwtPlotItem.legendData()`
217+
:py:meth:`setData()`, :py:meth:`qwt.plot.QwtPlotItem.legendData()`
218218
"""
219219
return self.__data.legendData
220220

221221
def setText(self, text):
222222
"""
223223
Set the text to the legend item
224224
225-
:param .text.QwtText text: Text label
225+
:param qwt.text.QwtText text: Text label
226226
227227
.. seealso::
228228
@@ -270,7 +270,7 @@ def setIcon(self, icon):
270270
271271
.. seealso::
272272
273-
:py:meth:`icon()`, :py:meth:`.plot.QwtPlotItem.legendIcon()`
273+
:py:meth:`icon()`, :py:meth:`qwt.plot.QwtPlotItem.legendIcon()`
274274
"""
275275
self.__data.icon = icon
276276
indent = self.margin()+self.__data.spacing
@@ -296,7 +296,7 @@ def setSpacing(self, spacing):
296296
297297
.. seealso::
298298
299-
:py:meth:`spacing()`, :py:meth:`.text.QwtTextLabel.margin()`
299+
:py:meth:`spacing()`, :py:meth:`qwt.text.QwtTextLabel.margin()`
300300
"""
301301
spacing = max([spacing, 0])
302302
if spacing != self.__data.spacing:
@@ -596,9 +596,9 @@ class QwtLegend(QwtAbstractLegend):
596596
597597
.. seealso ::
598598
599-
:py:class`.legend.QwtLegendLabel`,
600-
:py:class`.plot.QwtPlotItem`,
601-
:py:class`.plot.QwtPlot`
599+
:py:class`qwt.legend.QwtLegendLabel`,
600+
:py:class`qwt.plot.QwtPlotItem`,
601+
:py:class`qwt.plot.QwtPlot`
602602
603603
.. py:class:: QwtLegend([parent=None])
604604

qwt/painter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ def drawColorBar(self, painter, colorMap, interval, scaleMap,
321321
Draw a color bar into a rectangle
322322
323323
:param QPainter painter: Painter
324-
:param .color_map.QwtColorMap colorMap: Color map
325-
:param .interval.QwtInterval interval: Value range
326-
:param .scalemap.QwtScaleMap scaleMap: Scale map
324+
:param qwt.color_map.QwtColorMap colorMap: Color map
325+
:param qwt.interval.QwtInterval interval: Value range
326+
:param qwt.scalemap.QwtScaleMap scaleMap: Scale map
327327
:param Qt.Orientation orientation: Orientation
328328
:param QRectF rect: Target rectangle
329329
"""

qwt/painter_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ class QwtPainterCommand(object):
5353
`QwtPainterCommand` represents the attributes of a paint operation
5454
how it is used between `QPainter` and `QPaintDevice`
5555
56-
It is used by :py:class:`.graphic.QwtGraphic` to record and replay
56+
It is used by :py:class:`qwt.graphic.QwtGraphic` to record and replay
5757
paint operations
5858
5959
.. seealso::
6060
61-
:py:meth:`.graphic.QwtGraphic.commands()`
61+
:py:meth:`qwt.graphic.QwtGraphic.commands()`
6262
6363
6464
.. py:class:: QwtPainterCommand()

0 commit comments

Comments
 (0)