我希望使用matplotlib填充绘图中两行之间的空白,但它总是显示如下错误消息。我查过posted in the forum也有类似的问题,但他们的解决方案并不能解决这个问题。plt.subplots(1, 1, sharex=True)ax1.fill_between (year, W_low, W_high) 错误消息\axes\_axes.py", line 5233, in fill_between
y1 = ma.m
我尝试过多种方法来解决这个问题,但总是会遇到错误。我现在所犯的错误: ufunc 'isfinite‘不支持输入类型,并且根据“安全”的铸造规则,不能安全地强制输入到任何受支持的类型。from windrose import WindroseAxesimport matplotlib.cm as cm
import
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced现在,当我在最后绘制热图时,我得到了这个错误。我得到的不是显示球员热图的红色球场,而是一个空的白色球场。 ? ?
下面是一段很小的代码,它在两行图之间生成一个填充区域:import numpy as np
x = np.arange(0.0, 2,File "/home/usr/.virtualenvs/raiju/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 4778, in fill_between<
我正在尝试使用matplotlibfill_between函数,但是我得到了以下错误:"TypeError: ufunc 'isfinite‘不支持输入类型,并且根据转换规则’‘safe’‘,输入不能被安全地强制为任何支持的类型以下是代码import numpy as npimport matplotlib.pyplot as
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coercedLocal\Continuum\anaconda3\lib\site-packages\numpy\core\numeric.py", line 2521, in iscloseTypeError: ufunc 'isfi