From 1ca4a035bae9621bc7a3d0525d76faa1d9b6a34a Mon Sep 17 00:00:00 2001 From: Nirjhar Das <69003365+nirjhar-das@users.noreply.github.com> Date: Thu, 29 Apr 2021 04:12:27 +0530 Subject: [PATCH] Updated rlocus.py to remove warning by sisotool with rlocus_grid=True At line 239 in rlocus.py parameter passed to _sgrid_func() has been corrected. It was giving error when calling sisotool() with parameter rlocus_grid=True. --- control/rlocus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/rlocus.py b/control/rlocus.py index bad243292..4f83c019b 100644 --- a/control/rlocus.py +++ b/control/rlocus.py @@ -236,7 +236,7 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None, if isdtime(sys, strict=True): zgrid(ax=ax) else: - _sgrid_func(f) + _sgrid_func(fig=fig) elif grid: if isdtime(sys, strict=True): zgrid(ax=ax)