fig, axs = plt.subplots(4,2, figsize=(16, 24))
for i in range(4):
`im=axs[i,0].imshow(gamma_fn[:,i].reshape(dims), cmap='viridis')`
fig.colorbar(im,ax=axs[i,0], shrink=0.4)
axs[i,1].bar(elements, mu_fn[i])
axs[i,1].set_title('Mean value for cluster '+str(i+1))
axs[i,1].set_xlabel('Elements')
axs[i,1].set_ylabel('Counts')`
import scipy.misc
scipy.misc.toimage(image_array, cmin=0.0, cmax=...).save('test.jpg')
#plt.imshow(gamma_fn [:,1] .reshape(dims))
它说 AttributeError:模块“ scipy.misc”没有属性“ toimage” 如何在此处保存png文件?sc