INNER CODE UNIT · Python
dos
SMTG-Bham/ThermoParser · tp/cli/cli.py:1401
def dos(dos_dat, poscar, atoms, sigma, projected, total, total_label,
total_colour, colour, interpolate, kind, fill, fillalpha, line,
linestyle, marker, xmin, xmax, ymin, ymax, legend, legend_title,
location, style, large, save, show, extension, output):
"""Plots a phonon density of states."""
axes = tp.axes.large if large else tp.axes.small
fig, ax, add_legend = axes.one(style)
linestyle = list(linestyle)
colour = list(colour)
marker = list(marker)
if len(colour) == 1:
colour = colour[0]
data = tp.data.load.phonopy_dos(dos_dat, poscar, atoms)
tp.plot.frequency.add_dos(ax, data, projected=projected, sigma=sigma,
interpolate=interpolate, kind=kind,