Skip to content

Commit 9bcd5d3

Browse files
committed
simplify code: use endpoint kwargs
1 parent 706f57d commit 9bcd5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/api/radar_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def radar_factory(num_vars, frame='circle'):
3232
3333
"""
3434
# calculate evenly-spaced axis angles
35-
theta = 2*np.pi*np.linspace(0, 1 - 1./num_vars, num_vars)
35+
theta = np.linspace(0, 2*np.pi, num_vars, endpoint=False)
3636
# rotate theta such that the first axis is at the top
3737
theta += np.pi/2
3838

0 commit comments

Comments
 (0)