Trying to understand Distributions
Keith Sloan <[email protected]> Tue, 13 Jul 2021 05:14:54 +0100
| Newsgroups | gmane.comp.python.scientific.user |
|---|---|
| Message-ID | <[email protected]> |
Again another unsuccessful attempt trying to follow Roberts advice Data is astronomic so loc = 0 is not okay ax4 = fig.add_subplot(4, 1, 4) ag2, bg2, cg2 =stats.gamma.fit(RErange1[xfield].data) print(ag2, bg2, cg2) x0, x1 = stats.gamma.ppf([0.1, 0.99], ag2, scale=cg2) x = np.linspace(stats.gamma.ppf(x0,x1, int(ag2))) ax4.plot(x, stats.gamma.pdf(x, ag2, scale = cg2),'r-', lw=5, alpha=0.6, label='gamma pdf') plt.show() -- ========== Art & Ceramics =========== https://www.instagram.com/ksloan1952/ _______________________________________________ SciPy-User mailing list [email protected] https://mail.python.org/mailman/listinfo/scipy-user