In [1]:
import numpy as np
import matplotlib.pyplot as plt
In [6]:
from glob import glob
In [13]:
f, axes = plt.subplots(len(glob("data/h_psi4/h*.dat")), 1, 
                       figsize=(7,20), 
                       sharex=True)
for i, file in enumerate(glob("data/h_psi4/h*.dat")):
    ax = axes[i]
    waveform = np.genfromtxt(file)
    ax.plot(waveform[:,0], waveform[:,1])
 
png
In [14]:
f, axes = plt.subplots(len(glob("data/h_psi4/psi*.dat")), 1, 
                       figsize=(7,20), 
                       sharex=True)
for i, file in enumerate(glob("data/h_psi4/psi*.dat")):
    ax = axes[i]
    waveform = np.genfromtxt(file)
    ax.plot(waveform[:,0], waveform[:,1])
 
png
In [4]:
plt.plot(waveform[:,0], waveform[:,1])
 
/home/daniel/.virtualenvs/aries/jupyter/lib/python3.6/site-packages/matplotlib/font_manager.py:1238: UserWarning: findfont: Font family ["'URW Bookman L'"] not found. Falling back to DejaVu Sans.
  (prop.get_family(), self.defaultFamily[fontext]))
 
png