{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4340","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4340/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4340/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4340/events","html_url":"https://github.com/matplotlib/matplotlib/issues/4340","id":68688300,"number":4340,"title":"Histogram gap artifacts","user":{"login":"fonnesbeck","id":81476,"avatar_url":"https://avatars.githubusercontent.com/u/81476?v=3","gravatar_id":"","url":"https://api.github.com/users/fonnesbeck","html_url":"https://github.com/fonnesbeck","followers_url":"https://api.github.com/users/fonnesbeck/followers","following_url":"https://api.github.com/users/fonnesbeck/following{/other_user}","gists_url":"https://api.github.com/users/fonnesbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fonnesbeck/subscriptions","organizations_url":"https://api.github.com/users/fonnesbeck/orgs","repos_url":"https://api.github.com/users/fonnesbeck/repos","events_url":"https://api.github.com/users/fonnesbeck/events{/privacy}","received_events_url":"https://api.github.com/users/fonnesbeck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-15T13:50:21Z","updated_at":"2015-04-15T13:54:21Z","closed_at":null,"body":"I'm hoping there is a way to improve the default behavior of `hist`, which often generates gap artifacts between classes in histograms. For example, even using clean integer data that has natural breaks:\r\n\r\n    lsl_dr.degree_hl.dropna().value_counts()\r\n\r\n    6    10446\r\n    3     3127\r\n    4     3041\r\n    5     2705\r\n    2     1416\r\n    0      549\r\n    1      170\r\n    dtype: int64\r\n\r\nI get a result like the following:\r\n\r\n![bad hist](http://fonnesbeck-dropshare.s3.amazonaws.com/Unknown.png)\r\n\r\nThis plot is misleading because it suggests there are intervening classes with zero counts in between the bars. I assume this is a solved problem, since it does not occur in other packages (e.g. `ggplot`). "},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/93409997","html_url":"https://github.com/matplotlib/matplotlib/issues/4340#issuecomment-93409997","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4340","id":93409997,"user":{"login":"fonnesbeck","id":81476,"avatar_url":"https://avatars.githubusercontent.com/u/81476?v=3","gravatar_id":"","url":"https://api.github.com/users/fonnesbeck","html_url":"https://github.com/fonnesbeck","followers_url":"https://api.github.com/users/fonnesbeck/followers","following_url":"https://api.github.com/users/fonnesbeck/following{/other_user}","gists_url":"https://api.github.com/users/fonnesbeck/gists{/gist_id}","starred_url":"https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fonnesbeck/subscriptions","organizations_url":"https://api.github.com/users/fonnesbeck/orgs","repos_url":"https://api.github.com/users/fonnesbeck/repos","events_url":"https://api.github.com/users/fonnesbeck/events{/privacy}","received_events_url":"https://api.github.com/users/fonnesbeck/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T13:54:21Z","updated_at":"2015-04-15T13:54:21Z","body":"I'm going to try my hand at a pull request for this. Stay tuned."}}