%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
data_file = "P753-line-magnetic-AWAGS_MAG_2010.dat"
df = pd.read_csv(data_file, delim_whitespace=True, header=None)
def scatter(df, col=0):
fig, ax = plt.subplots(figsize=(10,10))
ax.scatter(df[10], df[9], c=df[col])
plt.show()
scatter(df[:50], col=3)
scatter(df[:500], col=3)
scatter(df[:5000], col=3)
scatter(df[:46200], col=3)
scatter(df[:50000], col=3)
scatter(df[:500000], col=3)