Guest User

Untitled

a guest
Jan 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. p1 = figure(plot_width=800, plot_height=500, title=target, tools="save", x_axis_type='log',
  2. x_range=[10**np.floor(np.log10(min(edges))), 10**np.ceil(np.log10(max(edges)))])
  3.  
  4. hist, edges = np.histogram(x, bins=hist_bins)
  5. p1.quad(top=hist, bottom=0, left=edges[:-1], right=edges[1:],
  6. alpha=0.8, fill_color='#4c72b0', line_color=None)
  7.  
  8. p1.xaxis.axis_label = 'Price'
  9. p1.yaxis.axis_label = 'Count'
  10. p1.xgrid.minor_grid_line_color = '#e5e5e5'
  11. p1.xaxis.formatter = NumeralTickFormatter(format="0a")
  12. p1.x_range = Range1d(200, 25000)
  13. p1.y_range = Range1d(0, 3000)
  14.  
  15. output_notebook()
  16. show(p1)
Add Comment
Please, Sign In to add comment