我有两个 numpy 数组a
(具有整数值)和b
(具有复数)。现在当我使用时stem(a,b)
,我收到以下错误:
C:\Python27\lib\site-packages\numpy\core\numeric.py:235:
ComplexWarning: Casting complex values to real discards the imaginary
part return array(a, dtype, copy=False, order=order)
Out[5]: <Container object of 3 artists>
有人可以帮忙吗?