Skip to content

Commit 389ebb4

Browse files
committed
Fix: actually plot vector field for X, Y argument option.
1 parent 77babe9 commit 389ebb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

control/phaseplot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def phase_plot(odefun, X=None, Y=None, scale=1, X0=None, T=None,
155155
(x1, x2) = np.meshgrid(
156156
np.linspace(X[0], X[1], X[2]),
157157
np.linspace(Y[0], Y[1], Y[2]))
158+
Narrows = len(x1)
159+
158160
else:
159161
# If we weren't given any grid points, don't plot arrows
160162
Narrows = 0;

0 commit comments

Comments
 (0)