@@ -149,11 +149,11 @@ class QwtColorMap(object):
149149 * `QImage.Format_ARGB32`
150150
151151 .. py:class:: QwtColorMap(format_)
152-
152+
153153 :param int format_: Preferred format of the color map (:py:data:`QwtColorMap.RGB` or :py:data:`QwtColorMap.Indexed`)
154154
155155 .. seealso ::
156-
156+
157157 :py:data:`qwt.QwtScaleWidget`
158158 """
159159
@@ -168,15 +168,15 @@ def __init__(self, format_=None):
168168 def color (self , interval , value ):
169169 """
170170 Map a value into a color
171-
171+
172172 :param qwt.interval.QwtInterval interval: valid interval for value
173173 :param float value: value
174174 :return: the color corresponding to value
175-
175+
176176 .. warning ::
177-
178- This method is slow for Indexed color maps. If it is necessary to
179- map many values, its better to get the color table once and find
177+
178+ This method is slow for Indexed color maps. If it is necessary to
179+ map many values, its better to get the color table once and find
180180 the color using `colorIndex()`.
181181 """
182182 if self .__format == self .RGB :
@@ -191,7 +191,7 @@ def format(self):
191191 def colorTable (self , interval ):
192192 """
193193 Build and return a color map of 256 colors
194-
194+
195195 :param qwt.interval.QwtInterval interval: range for the values
196196 :return: a color table, that can be used for a `QImage`
197197
@@ -223,19 +223,19 @@ def __init__(self):
223223class QwtLinearColorMap (QwtColorMap ):
224224 """
225225 Build a linear color map with two stops.
226-
226+
227227 .. py:class:: QwtLinearColorMap(format_)
228-
228+
229229 Build a color map with two stops at 0.0 and 1.0.
230230 The color at 0.0 is `Qt.blue`, at 1.0 it is `Qt.yellow`.
231-
231+
232232 :param int format_: Preferred format of the color map (:py:data:`QwtColorMap.RGB` or :py:data:`QwtColorMap.Indexed`)
233-
233+
234234 .. py:class:: QwtLinearColorMap(color1, color2, [format_=QwtColorMap.RGB]):
235235 :noindex:
236-
236+
237237 Build a color map with two stops at 0.0 and 1.0.
238-
238+
239239 :param QColor color1: color at 0.
240240 :param QColor color2: color at 1.
241241 :param int format_: Preferred format of the color map (:py:data:`QwtColorMap.RGB` or :py:data:`QwtColorMap.Indexed`)
@@ -266,21 +266,21 @@ def __init__(self, *args):
266266 def setMode (self , mode ):
267267 """
268268 Set the mode of the color map
269-
269+
270270 :param int mode: :py:data:`QwtLinearColorMap.FixedColors` or :py:data:`QwtLinearColorMap.ScaledColors`
271271
272- `FixedColors` means the color is calculated from the next lower color
273- stop. `ScaledColors` means the color is calculated by interpolating
272+ `FixedColors` means the color is calculated from the next lower color
273+ stop. `ScaledColors` means the color is calculated by interpolating
274274 the colors of the adjacent stops.
275275 """
276276 self .__data .mode = mode
277277
278278 def mode (self ):
279279 """
280280 :return: the mode of the color map
281-
281+
282282 .. seealso ::
283-
283+
284284 :py:meth:`QwtLinearColorMap.setMode`
285285 """
286286 return self .__data .mode
@@ -335,11 +335,11 @@ def __init__(self):
335335class QwtAlphaColorMap (QwtColorMap ):
336336 """
337337 QwtAlphaColorMap varies the alpha value of a color
338-
338+
339339 .. py:class:: QwtAlphaColorMap(color)
340-
340+
341341 Build a color map varying the alpha value of a color.
342-
342+
343343 :param QColor color: color of the map
344344 """
345345
@@ -351,7 +351,7 @@ def __init__(self, color):
351351 def setColor (self , color ):
352352 """
353353 Set the color of the map
354-
354+
355355 :param QColor color: color of the map
356356 """
357357 self .__data .color = color
@@ -361,9 +361,9 @@ def setColor(self, color):
361361 def color (self ):
362362 """
363363 :return: the color of the map
364-
364+
365365 .. seealso ::
366-
366+
367367 :py:meth:`QwtAlphaColorMap.setColor`
368368 """
369369 return self .__data .color
0 commit comments