AttributeError: AxesImage.set() got an unexpected keyword argument 'camp'
时间: 2023-10-01 22:09:26 浏览: 146
AttributeError: module 'tensorflow.compat.v1' has no attribute '
This error occurs because the set() method for the AxesImage object does not have a parameter called 'camp'. It is likely a typo and the correct parameter should be 'cmap', which is short for colormap.
To fix this error, replace 'camp' with 'cmap' in the code. For example:
```
img = ax.imshow(data, cmap='gray')
img.set(cmap='hot')
```
阅读全文