{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2945","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2945/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2945/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2945/events","html_url":"https://github.com/bokeh/bokeh/issues/2945","id":110053050,"number":2945,"title":"plotting \"large numbers\" with webgl=True causes point coordinates to be miscalculated","user":{"login":"canavandl","id":2198981,"avatar_url":"https://avatars.githubusercontent.com/u/2198981?v=3","gravatar_id":"","url":"https://api.github.com/users/canavandl","html_url":"https://github.com/canavandl","followers_url":"https://api.github.com/users/canavandl/followers","following_url":"https://api.github.com/users/canavandl/following{/other_user}","gists_url":"https://api.github.com/users/canavandl/gists{/gist_id}","starred_url":"https://api.github.com/users/canavandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canavandl/subscriptions","organizations_url":"https://api.github.com/users/canavandl/orgs","repos_url":"https://api.github.com/users/canavandl/repos","events_url":"https://api.github.com/users/canavandl/events{/privacy}","received_events_url":"https://api.github.com/users/canavandl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20bug","name":"type: bug","color":"C02942"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/11","html_url":"https://github.com/bokeh/bokeh/milestones/short-term","labels_url":"https://api.github.com/repos/bokeh/bokeh/milestones/11/labels","id":811343,"number":11,"title":"short-term","description":"Collects issues that need to be resolved soon, but not before the next release.\r\nThis milestone is always open and it gets populated from the either the long-term milestone or from new (unmilestoned) issues.\r\n\r\nRef: https://github.com/ContinuumIO/bokeh/wiki/BEP-1:-Issues-and-PRs-management#issue-times","creator":{"login":"damianavila","id":1640669,"avatar_url":"https://avatars.githubusercontent.com/u/1640669?v=3","gravatar_id":"","url":"https://api.github.com/users/damianavila","html_url":"https://github.com/damianavila","followers_url":"https://api.github.com/users/damianavila/followers","following_url":"https://api.github.com/users/damianavila/following{/other_user}","gists_url":"https://api.github.com/users/damianavila/gists{/gist_id}","starred_url":"https://api.github.com/users/damianavila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianavila/subscriptions","organizations_url":"https://api.github.com/users/damianavila/orgs","repos_url":"https://api.github.com/users/damianavila/repos","events_url":"https://api.github.com/users/damianavila/events{/privacy}","received_events_url":"https://api.github.com/users/damianavila/received_events","type":"User","site_admin":false},"open_issues":269,"closed_issues":33,"state":"open","created_at":"2014-10-02T12:30:03Z","updated_at":"2015-10-07T14:07:18Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-10-06T16:56:49Z","updated_at":"2015-10-07T14:54:17Z","closed_at":null,"body":"It appears that plotting \"large numbers\" (it seems to arise when values are >1e13), the coordinate of the rendered point is miscalculated. Using the WheelZoomTool on such a scatterplot will cause the points to stutter and jump around on the request_render event.\r\n\r\nThis is a non-trivial problem because it causes timeseries plots to be broken with webgl enabled, as the timeseries timestamps are over the threshold to induce this issue.\r\n\r\n```python\r\nfrom datetime import datetime as dt\r\n\r\nfrom bokeh.plotting import figure, output_file, show\r\n\r\noutput_file('myplot.html')\r\n\r\nxs = [1e15, 2e15, 2e15]\r\n### or\r\nxs = [dt(2014,1,1), dt(2014,1,2), dt(2014,1,3)]\r\nys = [1,2,3]\r\n\r\np = figure(webgl=True, x_axis_type='datetime')\r\np.scatter(x=xs, y=ys, size=15)\r\n\r\nshow(p)\r\n```\r\n\r\n<img width=\"580\" alt=\"screen shot 2015-10-06 at 4 03 34 pm\" src=\"https://cloud.githubusercontent.com/assets/2198981/10322569/f9775c96-6c43-11e5-85a5-a6075bd4e2be.png\">\r\n\r\n\r\nPython 3.4\r\nBokeh 0.10.0\r\nChrome 45.0.2454.101 (64-bit)"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/146219663","html_url":"https://github.com/bokeh/bokeh/issues/2945#issuecomment-146219663","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/2945","id":146219663,"user":{"login":"canavandl","id":2198981,"avatar_url":"https://avatars.githubusercontent.com/u/2198981?v=3","gravatar_id":"","url":"https://api.github.com/users/canavandl","html_url":"https://github.com/canavandl","followers_url":"https://api.github.com/users/canavandl/followers","following_url":"https://api.github.com/users/canavandl/following{/other_user}","gists_url":"https://api.github.com/users/canavandl/gists{/gist_id}","starred_url":"https://api.github.com/users/canavandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canavandl/subscriptions","organizations_url":"https://api.github.com/users/canavandl/orgs","repos_url":"https://api.github.com/users/canavandl/repos","events_url":"https://api.github.com/users/canavandl/events{/privacy}","received_events_url":"https://api.github.com/users/canavandl/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T14:54:17Z","updated_at":"2015-10-07T14:54:17Z","body":"The wobble effect still happens on zoom events for the above.\r\n\r\nAlso, it appears if you make the x-values even larger (1e18) the wegbl enabled plot looks like:\r\n\r\n<img width=\"586\" alt=\"screen shot 2015-10-07 at 9 51 36 am\" src=\"https://cloud.githubusercontent.com/assets/2198981/10341192/543135fe-6cd9-11e5-9a3d-e9d7aa363862.png\">\r\n\r\n"}}