{"action":"created","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/4563","labels_url":"https://api.github.com/repos/scipy/scipy/issues/4563/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/4563/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/4563/events","html_url":"https://github.com/scipy/scipy/pull/4563","id":59087222,"number":4563,"title":"ENH: rewrite of stats.ppcc_plot","user":{"login":"rgommers","id":98330,"avatar_url":"https://avatars.githubusercontent.com/u/98330?v=3","gravatar_id":"","url":"https://api.github.com/users/rgommers","html_url":"https://github.com/rgommers","followers_url":"https://api.github.com/users/rgommers/followers","following_url":"https://api.github.com/users/rgommers/following{/other_user}","gists_url":"https://api.github.com/users/rgommers/gists{/gist_id}","starred_url":"https://api.github.com/users/rgommers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgommers/subscriptions","organizations_url":"https://api.github.com/users/rgommers/orgs","repos_url":"https://api.github.com/users/rgommers/repos","events_url":"https://api.github.com/users/rgommers/events{/privacy}","received_events_url":"https://api.github.com/users/rgommers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scipy/scipy/labels/enhancement","name":"enhancement","color":"bfe5bf"},{"url":"https://api.github.com/repos/scipy/scipy/labels/scipy.stats","name":"scipy.stats","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/scipy/scipy/milestones/24","html_url":"https://github.com/scipy/scipy/milestones/0.16.0","labels_url":"https://api.github.com/repos/scipy/scipy/milestones/24/labels","id":792277,"number":24,"title":"0.16.0","description":"","creator":{"login":"rgommers","id":98330,"avatar_url":"https://avatars.githubusercontent.com/u/98330?v=3","gravatar_id":"","url":"https://api.github.com/users/rgommers","html_url":"https://github.com/rgommers","followers_url":"https://api.github.com/users/rgommers/followers","following_url":"https://api.github.com/users/rgommers/following{/other_user}","gists_url":"https://api.github.com/users/rgommers/gists{/gist_id}","starred_url":"https://api.github.com/users/rgommers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgommers/subscriptions","organizations_url":"https://api.github.com/users/rgommers/orgs","repos_url":"https://api.github.com/users/rgommers/repos","events_url":"https://api.github.com/users/rgommers/events{/privacy}","received_events_url":"https://api.github.com/users/rgommers/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":257,"state":"open","created_at":"2014-09-16T21:15:40Z","updated_at":"2015-04-04T14:58:56Z","due_on":"2015-05-30T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-02-26T15:20:15Z","updated_at":"2015-04-04T15:09:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/4563","html_url":"https://github.com/scipy/scipy/pull/4563","diff_url":"https://github.com/scipy/scipy/pull/4563.diff","patch_url":"https://github.com/scipy/scipy/pull/4563.patch"},"body":"Closes Statistics Review issue gh-679. \r\n\r\nAlso some minor fixes to ``stats.probplot`` and ``stats.tukeylambda`` are included."},"comment":{"url":"https://api.github.com/repos/scipy/scipy/issues/comments/89592694","html_url":"https://github.com/scipy/scipy/pull/4563#issuecomment-89592694","issue_url":"https://api.github.com/repos/scipy/scipy/issues/4563","id":89592694,"user":{"login":"rgommers","id":98330,"avatar_url":"https://avatars.githubusercontent.com/u/98330?v=3","gravatar_id":"","url":"https://api.github.com/users/rgommers","html_url":"https://github.com/rgommers","followers_url":"https://api.github.com/users/rgommers/followers","following_url":"https://api.github.com/users/rgommers/following{/other_user}","gists_url":"https://api.github.com/users/rgommers/gists{/gist_id}","starred_url":"https://api.github.com/users/rgommers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgommers/subscriptions","organizations_url":"https://api.github.com/users/rgommers/orgs","repos_url":"https://api.github.com/users/rgommers/repos","events_url":"https://api.github.com/users/rgommers/events{/privacy}","received_events_url":"https://api.github.com/users/rgommers/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T15:09:11Z","updated_at":"2015-04-04T15:09:11Z","body":"``probplot`` seems to work for any length input:\r\n\r\n- length 0 is special cased\r\n- length 1 gives a ``RuntimeWarning`` and returns ``((array([ 0.]), array([1])), (nan, nan, 0.0))``.\r\n- length 2 and up return values and don't give any warning. There's not much point of course for a length-2 input, but it seems overkill to add warnings for specific input sized there (also not clear where you'd put the cutoff then).\r\n\r\nPlots are all sensible as well, except a plot for length-1 which of course is just a single point in a figure.\r\n\r\nFor empty input ``ppcc_plot`` simple inherits the ``probplot`` behavior. At some point we may want to go through and review empty input handling for consistency between all stats functions, but that's not something I want to do now or in the near future.\r\n\r\n"}}