Skip to content

Instantly share code, notes, and snippets.

@telliott99
Created January 15, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save telliott99/74bb7a47adb692b60fcbf00dd9829901 to your computer and use it in GitHub Desktop.
Save telliott99/74bb7a47adb692b60fcbf00dd9829901 to your computer and use it in GitHub Desktop.
from matplotlib import pyplot as plt
import numpy as np
p = 81
q = 219
def f(x):
return x**(p-1)*(1-x)**(q-1)
X = np.linspace(0,1,1000)
Y = [f(x)*1e90 for x in X]
m = max(Y)
Y = [y*1.0/m for y in Y]
plt.scatter(X,Y,s=5,c='red')
plt.savefig('example.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment