Skip to content

Commit

Permalink
polar plot limits
Browse files Browse the repository at this point in the history
  • Loading branch information
darkeclipz committed Dec 23, 2018
1 parent af14159 commit e514f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ def polarplot():

f = ps
var = list(f.free_symbols)[0]
r = np.arange(0, 2*np.pi, 0.01)
r = np.arange(request.json['xlim'][0]*np.pi, request.json['xlim'][1]*np.pi, 0.01)
theta = [f.subs(var, r).evalf() for r in r]
ax = plt.subplot(111, projection='polar')
ax.plot(r, theta, c='purple', lw=4)
Expand Down

0 comments on commit e514f19

Please sign in to comment.