Skip to content

Commit fe0edc6

Browse files
committed
A few more style and docstring fixes
1 parent b8edc09 commit fe0edc6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ternary/colormapping.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get_cmap(cmap=None):
1818
1919
Parameters
2020
----------
21-
cmap, string or matplotlib.colors.Colormap instance
21+
cmap: string or matplotlib.colors.Colormap instance
2222
The name of the Matplotlib colormap to look up.
2323
2424
Returns
@@ -46,11 +46,11 @@ def colormapper(value, lower=0, upper=1, cmap=None):
4646
4747
Parameters
4848
----------
49-
x: float
49+
value: float
5050
The value to be colormapped
51-
a: float
51+
lower: float
5252
Lower bound of colors
53-
b: float
53+
upper: float
5454
Upper bound of colors
5555
cmap: String or matplotlib.colors.Colormap (optional)
5656
Colormap object to prevent repeated lookup

ternary/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def get_conversion(scale, limits):
154154
"""
155155
Get the conversion equations for each axis.
156156
157-
limits: dict of min and max values for the axes in the order blr.
157+
limits: dict of min and max values for the axes in the order blr.
158158
"""
159159
fb = float(scale) / float(limits['b'][1] - limits['b'][0])
160160
fl = float(scale) / float(limits['l'][1] - limits['l'][0])

ternary/ternary_axes_subplot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def get_ticks_from_axis_limits(self, multiple=1):
281281
self._ticks[k] = numpy.linspace(
282282
self._axis_limits[k][0],
283283
self._axis_limits[k][1],
284-
(self._boundary_scale/float(multiple) + 1)
284+
(self._boundary_scale / float(multiple) + 1)
285285
).tolist()
286286

287287
def set_custom_ticks(self, locations=None, clockwise=False, multiple=1,
@@ -337,9 +337,9 @@ def _redraw_labels(self):
337337
text.set_rotation_mode("anchor")
338338
self._to_remove.append(text)
339339

340-
def convert_coordinates(self,points,axisorder='blr'):
340+
def convert_coordinates(self, points, axisorder='blr'):
341341
"""
342-
Convert data coords to simplex coords for plotting
342+
Convert data coordinates to simplex coordinates for plotting
343343
in the case that axis limits have been applied
344344
"""
345345
return convert_coordinates_sequence(points,self._boundary_scale,

0 commit comments

Comments
 (0)