ApJdataFrames
006: Luhman2006Title
: The Spatial Distribution of Brown Dwarfs in Taurus
Authors
: Kevin L Luhman
Data is from this paper:
http://iopscience.iop.org./0004-637X/645/1/676/fulltext/
In [1]:
%pylab inline
import seaborn as sns
In [2]:
import warnings
warnings.filterwarnings("ignore")
In [3]:
import pandas as pd
In [4]:
sns.set_palette("Set1")
In [5]:
names = ["2MASS","Spectral Type","J-H","H-Ks","Ks","Night"]
tbl2 = pd.read_csv("http://iopscience.iop.org/0004-637X/645/1/676/fulltext/64411.tb2.txt",
sep='\t', names=names, na_values='\ldots')
tbl2.head()
Out[5]:
In [6]:
names = ["2MASS","Other Names","Spectral Type","Reference","Membership Evidence","J-H","H-Ks","Ks","Night"]
tbl3 = pd.read_csv("http://iopscience.iop.org./0004-637X/645/1/676/fulltext/64411.tb3.txt",
sep='\t', names=names, na_values='\ldots')
tbl3.head()
Out[6]:
In [7]:
plt.figure(figsize=(12, 8))
plt.subplot(121)
plt.scatter(tbl2["H-Ks"], tbl2["J-H"], label='Field Stars', c=sns.xkcd_rgb['lipstick red'])
plt.scatter(tbl3["H-Ks"], tbl3["J-H"], label='Taurus Members', c=sns.xkcd_rgb['denim blue'])
plt.xlabel(r'$H-K_S$')
plt.ylabel(r'$J-H$')
plt.title("color-color plot")
plt.legend(loc='upper left')
plt.subplot(122)
plt.scatter(tbl2["H-Ks"], tbl2["Ks"], label='Field Stars', c=sns.xkcd_rgb['lipstick red'])
plt.scatter(tbl3["H-Ks"], tbl3["Ks"], label='Taurus Members', c=sns.xkcd_rgb['denim blue'])
plt.xlabel(r'$H-K_S$')
plt.ylabel(r'$K_S$')
plt.title("PMS HR diagram \n with field star contaminants")
plt.ylim(16, 8)
Out[7]:
The end.