Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p1 = figure(plot_width=800, plot_height=500, title=target, tools="save", x_axis_type='log',
- x_range=[10**np.floor(np.log10(min(edges))), 10**np.ceil(np.log10(max(edges)))])
- hist, edges = np.histogram(x, bins=hist_bins)
- p1.quad(top=hist, bottom=0, left=edges[:-1], right=edges[1:],
- alpha=0.8, fill_color='#4c72b0', line_color=None)
- p1.xaxis.axis_label = 'Price'
- p1.yaxis.axis_label = 'Count'
- p1.xgrid.minor_grid_line_color = '#e5e5e5'
- p1.xaxis.formatter = NumeralTickFormatter(format="0a")
- p1.x_range = Range1d(200, 25000)
- p1.y_range = Range1d(0, 3000)
- output_notebook()
- show(p1)
Add Comment
Please, Sign In to add comment