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

You may be interested in these posts

Error in image file conversion: convert-im6.q16: not authorized `test.eps' @ error/constitute.c/WriteImage/1037.

This error is because of the vulnerability. This allows remote execution of code using image formats. So, some Linux distributions by defaul...