Last active
April 14, 2017 12:18
-
-
Save wdecoster/74fc4905450ad528cfcbc07f69dd466e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import seaborn as sns | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from scipy import stats | |
def makePlot(datadf): | |
plot = sns.jointplot( | |
x='editDistancesNM', | |
y='editDistancesMD', | |
data=datadf, | |
kind="scatter", | |
color="#4CB391", | |
stat_func=stats.pearsonr, | |
space=0, | |
joint_kws={"s": 1}, | |
size=10) | |
plot.savefig('EditDistancesCompared_scatter.png', format='png', dpi=1000) | |
plot = sns.jointplot( | |
x='editDistancesNM', | |
y='editDistancesMD', | |
data=datadf, | |
kind="kde", | |
color="#4CB391", | |
stat_func=stats.pearsonr, | |
space=0, | |
size=10) | |
plot.savefig('EditDistancesCompared_kde.png', format='png', dpi=1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment