From 74b9f7537c60d9bf066ab787cd477e1e10a3c49c Mon Sep 17 00:00:00 2001 From: Ana Malagon Date: Fri, 21 Nov 2014 21:38:24 -0800 Subject: [PATCH] scatterplot: changed linewidth to edgecolor --- logscatterplot.py | 4 ++-- scatterplot.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/logscatterplot.py b/logscatterplot.py index 2f62f87..4fa169e 100644 --- a/logscatterplot.py +++ b/logscatterplot.py @@ -10,8 +10,8 @@ years_ago_male = [2015 - y for y in wikibios.columns_male['birth_year']] firstedits_female = wikibios.columns_female['firstedit'] years_ago_female = [2015 - y for y in wikibios.columns_female['birth_year']] -axes.scatter(firstedits_male, years_ago_male, alpha=0.1, c='green', linewidths=(0,), label='Male') -axes.scatter(firstedits_female, years_ago_female, alpha=0.1, c='orange', linewidths=(0,), label='Female') +axes.scatter(firstedits_male, years_ago_male, alpha=0.1, c='green', edgecolors='None', label='Male') +axes.scatter(firstedits_female, years_ago_female, alpha=0.1, c='orange', edgecolors='None', label='Female') axes.set_xlabel('Article Date') axes.set_ylabel('Years Ago') axes.set_yscale('log') diff --git a/scatterplot.py b/scatterplot.py index cfc06d5..61582d8 100644 --- a/scatterplot.py +++ b/scatterplot.py @@ -8,12 +8,14 @@ axes = figure.gca() firstedits_male = wikibios.columns_male['firstedit'] birth_years_male = wikibios.columns_male['birth_year'] -axes.scatter(firstedits_male, birth_years_male, alpha=0.1, c='green', linewidths=(0,), label='Male') +axes.scatter(firstedits_male, birth_years_male, alpha=0.1, c='green', edgecolors='None', label='Male') firstedits_female = wikibios.columns_female['firstedit'] birth_years_female = wikibios.columns_female['birth_year'] -axes.scatter(firstedits_female, birth_years_female, alpha=0.1, c='orange', linewidths=(0,), label='Female') +axes.scatter(firstedits_female, birth_years_female, alpha=0.1, c='orange', edgecolors='None', label='Female') axes.set_xlabel('Article Date') axes.set_ylabel('Birth Year') axes.legend() + figure.savefig('scatter.png') + -- 2.39.5