User Tools

Site Tools


exercises:2019_conexs_newcastle:ex4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
exercises:2019_conexs_newcastle:ex4 [2019/09/11 12:52] – [Part 1: PDOS and spectra broadening of liquid water] abussyexercises:2019_conexs_newcastle:ex4 [2019/09/11 13:11] – [Part 1: PDOS and spectra broadening of liquid water] abussy
Line 301: Line 301:
 <code> <code>
 module load Anaconda3/5.0.1 module load Anaconda3/5.0.1
 +</code>
 +and then typing
 +<code>
 +python pdos_conv.py
 </code> </code>
 Note that you might have to change the parameters at the top of the file to get pleasing results. If a new window with the plot does not open, it is also saved in the current directory as "pdos.png". Note that you might have to change the parameters at the top of the file to get pleasing results. If a new window with the plot does not open, it is also saved in the current directory as "pdos.png".
 <code - pdos_conv.py> <code - pdos_conv.py>
 import numpy as np import numpy as np
-import matplotlib.pyplot as plt 
 import os import os
 +import matplotlib as mpl
 +mpl.use('Agg')
 +import matplotlib.pyplot as plt
  
 # Parameters # Parameters
exercises/2019_conexs_newcastle/ex4.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1