报错信息ax = axes if axes else plt.gca() ValueError: The truth value of an array with more than one ele
ax = axes if axes else plt.gca()
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
这个报错信息是因为ax是一个数组,而我们期待的是ax[i]。注意i是指第i个元素。
将ax传递成a[i]即可。
知乎 https://www.zhihu.com/people/yuanmuou/activities