AttributeError: module 'matplotlib' has no attribute 'image'
and I found two workarounds, using import matplotlib.pyplot as plt to use the pyplot submodule's imsave() or to import the image submodule with import matplotlib.image as mpimg to use its imsave() function. After some brief research I could not discern any major differences between the two functions so I have gone with the pyplot submodule's function.
I was running into the error:
and I found two workarounds, using
import matplotlib.pyplot as plt
to use the pyplot submodule'simsave()
or to import the image submodule withimport matplotlib.image as mpimg
to use itsimsave()
function. After some brief research I could not discern any major differences between the two functions so I have gone with the pyplot submodule's function.