In [1]:
import numpy as np
import healpy as hp
import sncosmo
import astropy


/astro/users/maddic9/store/miniconda/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 [6]:
data = sncosmo.load_example_data()
data


Out[6]:
<Table length=40>
timebandfluxfluxerrzpzpsys
float64str5float64float64float64str2
55070.0sdssg0.363511535970.67284384754125.0ab
55072.0512821sdssr-0.2008012958640.67284384754125.0ab
55074.1025641sdssi0.3074942329810.67284384754125.0ab
55076.1538462sdssz1.087761036560.67284384754125.0ab
55078.2051282sdssg-0.436678956450.67284384754125.0ab
55080.2564103sdssr1.097809667790.67284384754125.0ab
55082.3076923sdssi3.75626856270.67284384754125.0ab
55084.3589744sdssz5.348588949660.67284384754125.0ab
55086.4102564sdssg2.826141872690.67284384754125.0ab
55088.4615385sdssr7.565470450540.67284384754125.0ab
..................
55131.5384615sdssi3.995204040210.67284384754125.0ab
55133.5897436sdssz5.739894580940.67284384754125.0ab
55135.6410256sdssg0.3307022831070.67284384754125.0ab
55137.6923077sdssr0.5652867265790.67284384754125.0ab
55139.7435897sdssi3.043183467950.67284384754125.0ab
55141.7948718sdssz5.626926863840.67284384754125.0ab
55143.8461538sdssg-0.7226547890130.67284384754125.0ab
55145.8974359sdssr1.120917642620.67284384754125.0ab
55147.9487179sdssi2.12466952640.67284384754125.0ab
55150.0sdssz5.34821756450.67284384754125.0ab

In [8]:
import matplotlib.pyplot as plt
%matplotlib inline

In [12]:
fig= sncosmo.plot_lc(data, color= 'k')



In [ ]: