Import these first-- I auto import them every time!:
In [1]:
#! cat /Users/gully/.ipython/profile_default/startup/start.ipy
In [2]:
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%config InlineBackend.figure_format = 'retina'
%matplotlib inline
In [3]:
import pandas as pd
In [4]:
df_list = []
This takes a finite amount of RAM, but should be fine for modern laptops.
In [5]:
for i in range(16):
df_list.append(pd.read_csv('../data/TgasSource_000-000-{:03d}.csv'.format(i)))
In [6]:
tt = pd.concat(df_list, ignore_index=True)
In [7]:
plt.plot(tt.parallax, tt.parallax_error, '.', alpha=0.005)
plt.xscale('log')
In [9]:
tt.columns
Out[9]:
In [10]:
plt.plot(tt.phot_g_mean_mag, tt.parallax_error, '.', alpha=0.005)
Out[10]:
In [13]:
sns.set_style('ticks')
In [16]:
sns.jointplot(tt.phot_g_mean_mag, tt.parallax_error, kind='hex', stat_func=None)
plt.savefig('../results/photG_vs_parErr.png', dpi=300)