我正在尝试使用 matpolid 可视化一些数据,但出现此错误
File "C:\Python27\lib\site-packages\matplotlib\mlab.py", line 2775, in griddata
tri = delaunay.Triangulation(x,y)
File "C:\Python27\lib\site-packages\matplotlib\delaunay\triangulate.py", line 98, in __init__
duplicates = self._get_duplicate_point_indices()
File "C:\Python27\lib\site-packages\matplotlib\delaunay\triangulate.py", line 137, in _get_duplicate_point_indices
return j_sorted[mask_duplicates]
ValueError: too many boolean indices
它发生在我调用函数时
data=griddata(self.dataX,self.dataY,self.dataFreq,xi,yi)
有谁知道我为什么会收到这个错误?我认为它带有参数,但我可以弄清楚是什么