You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> nyquist(tf([1],[1,1]))
Traceback (most recent call last):
File "/home/henklaak/Software/python-control/examples/secord-matlab.py", line 8, in <module>
nyquist(tf([1],[1,1]))
File "/home/henklaak/Software/python-control/control/matlab/wrappers.py", line 109, in nyquist
_, contour = nyquist_plot(syslist, omega, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/henklaak/Software/python-control/control/freqplot.py", line 1027, in nyquist_plot
plt.plot(
File "/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/pyplot.py", line 2785, in plot
return gca().plot(
^^^^^^^^^^^
File "/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/axes/_axes.py", line 1690, in plot
self.add_line(line)
File "/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/axes/_base.py", line 2304, in add_line
self._update_line_limits(line)
File "/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/axes/_base.py", line 2327, in _update_line_limits
path = line.get_path()
^^^^^^^^^^^^^^^
File "/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/lines.py", line 1029, in get_path
self.recache()
File "/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/lines.py", line 681, in recache
self._x_filled[nanmask] = np.interp(
^^^^^^^^^^
File "<__array_function__ internals>", line 200, in interp
File "/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/numpy/lib/function_base.py", line 1595, in interp
return interp_func(x, xp, fp, left, right)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: array of sample points is empty
Activity
[-]Matplotlib 3.7 breaks python-control[/-][+]Matplotlib 3.7 breaks plotting[/+][-]Matplotlib 3.7 breaks plotting[/-][+]Matplotlib 3.7 breaks nyquist_plot[/+][-]Matplotlib 3.7 breaks nyquist_plot[/-][+]Matplotlib 3.7 breaks nyquist_plot()[/+]Merge pull request #863 from henklaak/main
murrayrm commentedon Feb 18, 2023
Fixed in #863