Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def plot_Hist_Pdf_Cdf(values, mu, sigma):
- import numpy as np
- import scipy.special
- from bokeh.layouts import gridplot
- from bokeh.plotting import figure, show, output_file
- x = np.linspace(0, np.max(values), 1000)
- pdf = 1/(sigma * np.sqrt(2*np.pi)) * np.exp(-(x-mu)**2 / (2*sigma**2))
- cdf = (1+scipy.special.erf((x-mu)/np.sqrt(2*sigma**2)))/2
- graph_title = "Title"
- p1 = make_plot(graph_title, hist, edges, x, pdf, cdf)
- #output_file('histogram.html', title="histogram.py example")
- show(gridplot([p1], ncols=2, plot_width=400, plot_height=400, toolbar_location=None))
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement