Skip to content

Instantly share code, notes, and snippets.

@GastonMazzei
Created October 20, 2021 17:51
Show Gist options
  • Save GastonMazzei/d1e84aa52cfd4a5c9e4e888a7710f8d7 to your computer and use it in GitHub Desktop.
Save GastonMazzei/d1e84aa52cfd4a5c9e4e888a7710f8d7 to your computer and use it in GitHub Desktop.
cute_plot.py
import matplotlib.pyplot as plt
import numpy as np
x=np.linspace(0,15,100)
y=np.sin(x)
plt.scatter(x,y)
plt.plot(x,y)
plt.title('PMF of the $2^n$ different possible phases')
plt.ylabel('Probability (0-1)')
plt.xlabel(r'$\frac{2^n phase}{2\pi}$')
plt.grid()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment