Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
script for DOS plotting
import matplotlib.pyplot as plt
import h5py
import matplotlib as mpl
import numpy as np
#************************************
#keep these definitions for kite website
import seaborn as sns
mpl.rcParams['figure.dpi'] = 100
mpl.rcParams['savefig.dpi'] = 100
sns.set_style("white")
#Kite color scheme
colors = ["dusty purple", "faded green","windows blue", "amber", "greyish"]
current_palette=sns.xkcd_palette(colors)
sns.set_palette(current_palette)
sns.set_style("ticks")
sns.set_context("talk",font_scale=1.1)
#*************************************
data=np.loadtxt('dos.dat')
plt.plot(data[:,0],data[:,1])
plt.xlabel('E (eV)')
plt.ylabel('DOS (a.u)')
plt.ylim(ymin=0)
#plt.xlim(-3.5,3.5)
plt.legend()
plt.tight_layout()
plt.show()
@quantum-kite

This comment has been minimized.

Copy link
Owner Author

@quantum-kite quantum-kite commented Jun 5, 2018

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.