{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5768","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5768/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5768/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5768/events","html_url":"https://github.com/matplotlib/matplotlib/pull/5768","id":124434975,"number":5768,"title":"Fix floating point inaccuracies in axes limits; partial work on offset value selection","user":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/needs_review","name":"needs_review","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-31T05:49:00Z","updated_at":"2016-01-01T03:03:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5768","html_url":"https://github.com/matplotlib/matplotlib/pull/5768","diff_url":"https://github.com/matplotlib/matplotlib/pull/5768.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/5768.patch"},"body":"(1) `plt.plot([-.1, .2])` used to pick (in round numbers mode) `[-.1, .25]` as\r\nylims due to floating point inaccuracies; change it to pick `[-.1, .2]`\r\n(up to floating point inaccuracies).\r\n\r\nNote that this requires working around a bug in numpy's implementation\r\nof divmod (numpy/numpy#6127).\r\n\r\nMany test images have changed!\r\n\r\nSee #5767.\r\n\r\n*The following part is incorrect and only left for reference purposes, please ignore.*\r\n> (2) Make MaxNLocator only return points within bounds.\r\n\r\n> e.g. when the xlims are -0.5 .. 10.5, return 0 .. 10 instead of -1\r\n> .. 11.\r\n\r\nThis implies dropping the (unused and deprecated-in-comment)\r\n\"trim\" keyword argument.\r\n\r\nAlso slightly clean up the implementation of scale_range.\r\n\r\nInitial work on #5738."},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/168279119","html_url":"https://github.com/matplotlib/matplotlib/pull/5768#issuecomment-168279119","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5768","id":168279119,"user":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T03:03:32Z","updated_at":"2016-01-01T03:03:32Z","body":"I'm a bit confused by the Travis failure only for 2.7.  Everything passes fine for me (https://travis-ci.org/anntzer/matplotlib/builds/99672606), and Appveyor also seems happy.  Thoughts?"}}