Pages

Matplotlib common errors

Error: matplotlib.pyplot
not enough values to unpack (expected 3, got 2)

This is because, I defined as follows.

fig, ax, bx = plt.subplots()

Then, I did not use bx.

Once I removed bx,. i.e., by setting "fig, ax = plt.subplots()", the problem solved.




No comments:

Post a Comment