Skip to content

Commit c4c1730

Browse files
author
scls19fr
authored
Update windrose.py
Closes #99
1 parent d97ea60 commit c4c1730

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

windrose/windrose.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
DIR_DEFAULT = 'direction'
1919
FIGSIZE_DEFAULT = (8, 8)
2020
DPI_DEFAULT = 80
21-
VF = np.vectorize(lambda wd: -wd + np.pi / 2)
2221

2322

2423
def _autogen_docstring(base):
@@ -736,7 +735,7 @@ def wrscatter(direction, var, ax=None, rmax=None, *args, **kwargs):
736735
Draw scatter plot
737736
'''
738737
ax = WindroseAxes.from_ax(ax, rmax=rmax)
739-
direction = VF(direction)
738+
direction = -np.array(direction) + np.radians(90)
740739
ax.scatter(direction, var, *args, **kwargs)
741740
return ax
742741

0 commit comments

Comments
 (0)