Skip to content

Instantly share code, notes, and snippets.

@galenseilis
Created October 17, 2022 01:29
Show Gist options
  • Select an option

  • Save galenseilis/3293e31ce0c9dfaee376d8a53b6c5edf to your computer and use it in GitHub Desktop.

Select an option

Save galenseilis/3293e31ce0c9dfaee376d8a53b6c5edf to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
x = np.random.normal(size=1000)
y1 = np.cos(x)
y2 = np.sin(x)
d = {'$\cos X$':y1, '$\sin X$':y2}
df = pd.DataFrame(d)
sns.jointplot(data=df, x='$\cos X$', y='$\sin X$')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment