Skip to content

Commit

Permalink
Made the scatter plot slightly more tolerable to look at. #19.
Browse files Browse the repository at this point in the history
  • Loading branch information
sweverett committed Jan 22, 2019
1 parent fbe7763 commit 7af9476
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
import PyPDF2
import numpy as np
import matplotlib
import matplotlib.pylab as plt
matplotlib.use('Agg')
import matplotlib.pyplot as plt
#import seaborn as ssb
#plt.style.use('seaborn')
#matplotlib.use('Agg')

# pylint: disable=invalid-name

Expand Down Expand Up @@ -76,12 +78,12 @@ def plot_scatter(options, data_obs, kelly_scaled_fit, mantz_scaled_fit, x_piv,
(x_obs, y_obs, x_err_obs, y_err_obs) = data_obs

# Plot data
plt.errorbar(x_obs, y_obs, xerr=x_err_obs, yerr=y_err_obs, c='r', fmt='o')
plt.errorbar(x_obs, y_obs, xerr=x_err_obs, yerr=y_err_obs, fmt='o', markeredgecolor='k')

for method in METHODS:
if method == 'kelly':
scaled_fit = kelly_scaled_fit
color = 'b'
color = 'r'

elif method == 'mantz':
scaled_fit = mantz_scaled_fit
Expand Down

0 comments on commit 7af9476

Please sign in to comment.