Friday, February 13, 2015

Pymatgen (for generating DOS) - Windows 8 Instructions

Another way to do band diagrams using pymatgen. You'll need a few other things like cygwin and platmatlib to actually get pymatgen going. For full instr;uctions on actually generating the band diagram and DOS plots, use this graphene example here: https://www.nsc.liu.se/~pla/vasptools/

Rough Notes...



First, install Cygwin

In install include: 
(in the link it will tell you that you need gcc4, but this is the default gcc now)
 


 
Also, add all python packages and lapack and blas and any c libraries…

Install matplotlib
 
Download matplotlib from sourceforge and unzip in Cygwin directory (wherever), to install it…

 
If you get a freetype error….

 
 


Apt-get in cygwin is apt-cyg
import matplotlib
matplotlib.use('agg')
since running remotely you want to turn on ‘agg’ so that it doesn’t try to launch in the shell
 

 
 


No comments:

Post a Comment