I used the above code in the fipy, but the range of color bar is always not changed( always showed [-1,1]). My version is Python 3.6.7 and matlablib 3.1.1.
#create a viewer to see the results
if __name__ == '__main__':
viewer = Viewer(vars=psi, datamin=-0.01, datamax=0)
viewer.plot()
I tried the following: 1, I changed the code in "C:\Users\Lenovo\fipy\examples\diffusion", for example, changed "datamin=-0.01, datamax=0". is not work. 2, directly used "MatplotlibViewer". is not work. 3, used “GnuplotViewer". Can not install in Python.