In [1]:
import numpy as np
import matplotlib.pyplot as plt

%matplotlib inline


//anaconda/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')

In [2]:
from clarsach import *

In [3]:
TESTFILE = "../clarsach/data/fake_heg_p1.pha"

In [4]:
spec = XSpectrum(TESTFILE)

In [5]:
ax = plt.subplot(111)
spec.plot(ax, color='r', alpha=0.8)
plt.title(TESTFILE)
#plt.xlim(1.0, 1.01)
#plt.ylim(0,100)


Out[5]:
<matplotlib.text.Text at 0x1154fafd0>

In [6]:
ax = plt.subplot(111)
spec.plot(ax, xunit='angs', color='r', alpha=0.8)
plt.title(TESTFILE)


Out[6]:
<matplotlib.text.Text at 0x113313190>

In [ ]: