We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 499ae6f + 208b830 commit 0b6951dCopy full SHA for 0b6951d
1 file changed
windrose/windrose.py
@@ -264,7 +264,10 @@ def get_labels(decimal_places=1, units=None):
264
labels = [
265
fmt.format(digits[k], digits[k + 1]) for k in range(len(digits) - 1)
266
]
267
- labels[-1] = f">{digits[-1]}"
+ if units:
268
+ labels[-1] = f">{digits[-1]} " + units
269
+ else:
270
+ labels[-1] = f">{digits[-1]}"
271
return labels
272
273
kwargs.pop("labels", None)
0 commit comments