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]即可。
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]即可。