Skip to content

Commit e05c127

Browse files
committed
Black reformatting (minor changes)
1 parent bbf9b01 commit e05c127

36 files changed

+1667
-1670
lines changed

doc/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,3 @@
204204

205205
# If false, no module index is generated.
206206
# latex_use_modindex = True
207-

qwt/_math.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,3 @@ def qwtRadians(degrees):
7575

7676
def qwtDegrees(radians):
7777
return radians * 180.0 / math.pi
78-

qwt/color_map.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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):
223223
class 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):
335335
class 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

qwt/column_symbol.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,3 @@ def orientation(self):
165165
if self.direction in (self.LeftToRight, self.RightToLeft):
166166
return Qt.Horizontal
167167
return Qt.Vertical
168-

qwt/dyngrid_layout.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,28 @@ class QwtDynGridLayout(QLayout):
3939
The `QwtDynGridLayout` class lays out widgets in a grid,
4040
adjusting the number of columns and rows to the current size.
4141
42-
`QwtDynGridLayout` takes the space it gets, divides it up into rows and
43-
columns, and puts each of the widgets it manages into the correct cell(s).
44-
It lays out as many number of columns as possible (limited by
42+
`QwtDynGridLayout` takes the space it gets, divides it up into rows and
43+
columns, and puts each of the widgets it manages into the correct cell(s).
44+
It lays out as many number of columns as possible (limited by
4545
:py:meth:`maxColumns()`).
4646
4747
.. py:class:: QwtDynGridLayout(parent, margin, [spacing=-1])
48-
48+
4949
:param QWidget parent: parent widget
50-
:param int margin: margin
51-
:param int spacing: spacing
50+
:param int margin: margin
51+
:param int spacing: spacing
5252
5353
.. py:class:: QwtDynGridLayout(spacing)
5454
:noindex:
55-
56-
:param int spacing: spacing
55+
56+
:param int spacing: spacing
5757
5858
.. py:class:: QwtDynGridLayout()
5959
:noindex:
60-
61-
Initialize the layout with default values.
62-
63-
:param int spacing: spacing
60+
61+
Initialize the layout with default values.
62+
63+
:param int spacing: spacing
6464
"""
6565

6666
def __init__(self, *args):
@@ -133,24 +133,24 @@ def count(self):
133133
def setExpandingDirections(self, expanding):
134134
"""
135135
Set whether this layout can make use of more space than sizeHint().
136-
A value of Qt.Vertical or Qt.Horizontal means that it wants to grow in
137-
only one dimension, while Qt.Vertical | Qt.Horizontal means that it
136+
A value of Qt.Vertical or Qt.Horizontal means that it wants to grow in
137+
only one dimension, while Qt.Vertical | Qt.Horizontal means that it
138138
wants to grow in both dimensions. The default value is 0.
139139
"""
140140
self.__data.expanding = expanding
141141

142142
def expandingDirections(self):
143143
"""
144144
Returns whether this layout can make use of more space than sizeHint().
145-
A value of Qt.Vertical or Qt.Horizontal means that it wants to grow in
146-
only one dimension, while Qt.Vertical | Qt.Horizontal means that it
145+
A value of Qt.Vertical or Qt.Horizontal means that it wants to grow in
146+
only one dimension, while Qt.Vertical | Qt.Horizontal means that it
147147
wants to grow in both dimensions.
148148
"""
149149
return self.__data.expanding
150150

151151
def setGeometry(self, rect):
152152
"""
153-
Reorganizes columns and rows and resizes managed items within a
153+
Reorganizes columns and rows and resizes managed items within a
154154
rectangle.
155155
"""
156156
QLayout.setGeometry(self, rect)
@@ -166,9 +166,9 @@ def setGeometry(self, rect):
166166

167167
def columnsForWidth(self, width):
168168
"""
169-
Calculate the number of columns for a given width.
169+
Calculate the number of columns for a given width.
170170
171-
The calculation tries to use as many columns as possible
171+
The calculation tries to use as many columns as possible
172172
( limited by maxColumns() )
173173
"""
174174
if self.isEmpty():

0 commit comments

Comments
 (0)