with colorbar?


How can I add a colorbar after using
I've tried a bunch of things but have gotten various errors

Here's one way I tried:

           fig, ax = plt.subplots(figsize = (16, 16))
            retted =, ax=ax, cmap='Greys_r')  
            fig.colorbar(retted, ax=ax)

This has error: AttributeError: 'AxesSubplot' object has no attribute 'get_array'

Join to automatically receive all group messages.