Skip to content

Commit 1282ec0

Browse files
committed
fixed legacy usage check
1 parent cf8303b commit 1282ec0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

control/phaseplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def phase_plane_plot(
161161
"""
162162
# Check for legacy usage of plot_streamlines
163163
streamline_keywords = [
164-
'arrows', 'arrow_size', 'arrow_style', 'color', 'dir', 'params']
164+
'arrows', 'arrow_size', 'arrow_style', 'dir']
165165
if plot_streamlines is None:
166166
if any([kw in kwargs for kw in streamline_keywords]):
167167
warnings.warn(
@@ -270,7 +270,7 @@ def _create_kwargs(global_kwargs, local_kwargs, **other_kwargs):
270270
out[0] += separatrices(
271271
sys, pointdata, _check_kwargs=False, **kwargs_local)
272272

273-
sep_zorder = max(elem.get_zorder() for elem in out[0])
273+
sep_zorder = max(elem.get_zorder() for elem in out[0]) if out[0] else None
274274

275275
# Get rid of keyword arguments handled by separatrices
276276
for kw in ['arrows', 'arrow_size', 'arrow_style', 'params']:

0 commit comments

Comments
 (0)