@@ -161,7 +161,6 @@ def phase_plane_plot(
161161
162162 # Create copy of kwargs for later checking to find unused arguments
163163 initial_kwargs = dict (kwargs )
164- passed_kwargs = False
165164
166165 # Utility function to create keyword arguments
167166 def _create_kwargs (global_kwargs , local_kwargs , ** other_kwargs ):
@@ -1143,10 +1142,11 @@ def phase_plot(odefun, X=None, Y=None, scale=1, X0=None, T=None,
11431142 if scale is None :
11441143 plt .quiver (x1 , x2 , dx [:,:,1 ], dx [:,:,2 ], angles = 'xy' )
11451144 elif (scale != 0 ):
1145+ plt .quiver (x1 , x2 , dx [:,:,0 ]* np .abs (scale ),
1146+ dx [:,:,1 ]* np .abs (scale ), angles = 'xy' )
11461147 #! TODO: optimize parameters for arrows
11471148 #! TODO: figure out arguments to make arrows show up correctly
1148- xy = plt .quiver (x1 , x2 , dx [:,:,0 ]* np .abs (scale ),
1149- dx [:,:,1 ]* np .abs (scale ), angles = 'xy' )
1149+ # xy = plt.quiver(...)
11501150 # set(xy, 'LineWidth', PP_arrow_linewidth, 'Color', 'b')
11511151
11521152 #! TODO: Tweak the shape of the plot
@@ -1256,15 +1256,17 @@ def phase_plot(odefun, X=None, Y=None, scale=1, X0=None, T=None,
12561256 #! TODO: figure out arguments to make arrows show up correctly
12571257 plt .quiver (x1 , x2 , dx [:,:,0 ], dx [:,:,1 ], angles = 'xy' )
12581258 elif scale != 0 and Narrows > 0 :
1259+ plt .quiver (x1 , x2 , dx [:,:,0 ]* abs (scale ), dx [:,:,1 ]* abs (scale ),
1260+ angles = 'xy' )
12591261 #! TODO: figure out arguments to make arrows show up correctly
1260- xy = plt .quiver (x1 , x2 , dx [:,:,0 ]* abs (scale ), dx [:,:,1 ]* abs (scale ),
1261- angles = 'xy' )
1262+ # xy = plt.quiver(...)
12621263 # set(xy, 'LineWidth', PP_arrow_linewidth)
12631264 # set(xy, 'AutoScale', 'off')
12641265 # set(xy, 'AutoScaleFactor', 0)
12651266
12661267 if scale < 0 :
1267- bp = plt .plot (x1 , x2 , 'b.' ); # add dots at base
1268+ plt .plot (x1 , x2 , 'b.' ); # add dots at base
1269+ # bp = plt.plot(...)
12681270 # set(bp, 'MarkerSize', PP_arrow_markersize)
12691271
12701272
0 commit comments