Aug-22-2018, 04:35 PM
If I run it, I get a plot as a result, but the zlim did not work and it gives:
Error:"runfile('C:/Users/Rene/Desktop/Computational Physics/Project/Program/phase_diagram_N_hard_spheres/3D_plot.py', wdir='C:/Users/Rene/Desktop/Computational Physics/Project/Program/phase_diagram_N_hard_spheres')
Traceback (most recent call last):
File "<ipython-input-2-5750a66114d4>", line 1, in <module>
runfile('C:/Users/Rene/Desktop/Computational Physics/Project/Program/phase_diagram_N_hard_spheres/3D_plot.py', wdir='C:/Users/Rene/Desktop/Computational Physics/Project/Program/phase_diagram_N_hard_spheres')
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 678, in runfile
execfile(filename, namespace)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 106, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Rene/Desktop/Computational Physics/Project/Program/phase_diagram_N_hard_spheres/3D_plot.py", line 26, in <module>
plt.zlim(0,7.5)
AttributeError: module 'matplotlib.pyplot' has no attribute 'zlim'"
I am using Spyder.