Skip to content

Instantly share code, notes, and snippets.

@pwolfram
Created March 26, 2015 16:31
Show Gist options
  • Save pwolfram/70493ccded9d66ef8ca0 to your computer and use it in GitHub Desktop.
Save pwolfram/70493ccded9d66ef8ca0 to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
N=1000
x = np.random.randn(N)
y = np.random.randn(N)
def count(x,y):
return x.shape[0]
jp = sns.jointplot(x,y,kind='gauss',stat_func=None)
jp.annotate(count, template="{stat} = {val:d}")
sns.despine()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment