%matplotlib inline
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
data = pd.read_csv('data/dr1.sample', delimiter='|')
data.head()
data[['ra','dec']]
from astropy import units as u
from astropy.coordinates import Angle
fig = plt.figure()
axes = fig.add_axes([0.1, 0.1, 0.8, 0.8]) # left, bottom, width, height (range 0 to 1)
axes.scatter(data['ra'], data['dec'], s = data['mag2'])
xticks = axes.get_xticks()
yticks = axes.get_yticks()
xt = ["$%.1f^{\circ}$"%n for n in xticks.tolist()]
yt = ["$%.1f^{\circ}$"%n for n in yticks.tolist()]
xt,yt
axes.set_xticklabels(xt)
axes.set_yticklabels(yt)