{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/3398","repository_url":"https://api.github.com/repos/bokeh/bokeh","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/3398/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/3398/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/3398/events","html_url":"https://github.com/bokeh/bokeh/issues/3398","id":123524073,"number":3398,"title":"Specify Histogram Bins - Feature Request","user":{"login":"seanlaw","id":7473521,"avatar_url":"https://avatars.githubusercontent.com/u/7473521?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlaw","html_url":"https://github.com/seanlaw","followers_url":"https://api.github.com/users/seanlaw/followers","following_url":"https://api.github.com/users/seanlaw/following{/other_user}","gists_url":"https://api.github.com/users/seanlaw/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlaw/subscriptions","organizations_url":"https://api.github.com/users/seanlaw/orgs","repos_url":"https://api.github.com/users/seanlaw/repos","events_url":"https://api.github.com/users/seanlaw/events{/privacy}","received_events_url":"https://api.github.com/users/seanlaw/received_events","type":"User","site_admin":false},"labels":[{"id":91228996,"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20discussion","name":"type: discussion","color":"2659A0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2015-12-22T17:35:41Z","updated_at":"2016-11-08T10:38:50Z","closed_at":null,"body":"I have a list of Pandas dataframes stored in dfs and I am plotting a grid (three columns) of histograms: \n\n```\nhists = [Histogram(dfs[colname], \n           title=colname, \n           bins=20, \n          ) for colname in dfs.columns]\nfor h in hists:\n    h.x_range = Range1d(-20, 20)\nncol = 3\nhists = [hists[i:i+ncol] for i in range(0,len(hists),ncol)]\np = gridplot(hists)\n```\n\nHowever, I've noticed that while the number of bins (20) are the same in all of the plots, the width and location of each bin is inconsistent from plot to plot. I believe this is because each plot has a different x_range and the bins are generated using some optimized method. Instead, I'd like to be able to specify the width and location of each bin, maybe in the form of a list of tuples or something:\n\nbins = [(-20, -15), (-15, -10), (-10, -5), (-5, 0), (0, 5), (5, 10), (10, 15), (15, 20)]  \n\nAlso, notice that I've set my x_range to (-20, 20) so I know my min/max are from all of the plots.\n"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/259103210","html_url":"https://github.com/bokeh/bokeh/issues/3398#issuecomment-259103210","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/3398","id":259103210,"user":{"login":"ndawe","id":202816,"avatar_url":"https://avatars.githubusercontent.com/u/202816?v=3","gravatar_id":"","url":"https://api.github.com/users/ndawe","html_url":"https://github.com/ndawe","followers_url":"https://api.github.com/users/ndawe/followers","following_url":"https://api.github.com/users/ndawe/following{/other_user}","gists_url":"https://api.github.com/users/ndawe/gists{/gist_id}","starred_url":"https://api.github.com/users/ndawe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndawe/subscriptions","organizations_url":"https://api.github.com/users/ndawe/orgs","repos_url":"https://api.github.com/users/ndawe/repos","events_url":"https://api.github.com/users/ndawe/events{/privacy}","received_events_url":"https://api.github.com/users/ndawe/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T10:38:50Z","updated_at":"2016-11-08T10:38:50Z","body":"I confirm that bins can be a list of edges on the python side and it functions correctly"}}
{"actor":{"display_login":"ndawe"}}