{"action":"closed","issue":{"url":"https://api.github.com/repos/bokeh/datashader/issues/457","repository_url":"https://api.github.com/repos/bokeh/datashader","labels_url":"https://api.github.com/repos/bokeh/datashader/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/datashader/issues/457/comments","events_url":"https://api.github.com/repos/bokeh/datashader/issues/457/events","html_url":"https://github.com/bokeh/datashader/issues/457","id":256505150,"number":457,"title":"Points dropped?  2D Histogram vs. DataShader","user":{"login":"apiszcz","id":1430861,"avatar_url":"https://avatars2.githubusercontent.com/u/1430861?v=4","gravatar_id":"","url":"https://api.github.com/users/apiszcz","html_url":"https://github.com/apiszcz","followers_url":"https://api.github.com/users/apiszcz/followers","following_url":"https://api.github.com/users/apiszcz/following{/other_user}","gists_url":"https://api.github.com/users/apiszcz/gists{/gist_id}","starred_url":"https://api.github.com/users/apiszcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiszcz/subscriptions","organizations_url":"https://api.github.com/users/apiszcz/orgs","repos_url":"https://api.github.com/users/apiszcz/repos","events_url":"https://api.github.com/users/apiszcz/events{/privacy}","received_events_url":"https://api.github.com/users/apiszcz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"jbcrail","id":6038,"avatar_url":"https://avatars1.githubusercontent.com/u/6038?v=4","gravatar_id":"","url":"https://api.github.com/users/jbcrail","html_url":"https://github.com/jbcrail","followers_url":"https://api.github.com/users/jbcrail/followers","following_url":"https://api.github.com/users/jbcrail/following{/other_user}","gists_url":"https://api.github.com/users/jbcrail/gists{/gist_id}","starred_url":"https://api.github.com/users/jbcrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbcrail/subscriptions","organizations_url":"https://api.github.com/users/jbcrail/orgs","repos_url":"https://api.github.com/users/jbcrail/repos","events_url":"https://api.github.com/users/jbcrail/events{/privacy}","received_events_url":"https://api.github.com/users/jbcrail/received_events","type":"User","site_admin":false},"assignees":[{"login":"jbcrail","id":6038,"avatar_url":"https://avatars1.githubusercontent.com/u/6038?v=4","gravatar_id":"","url":"https://api.github.com/users/jbcrail","html_url":"https://github.com/jbcrail","followers_url":"https://api.github.com/users/jbcrail/followers","following_url":"https://api.github.com/users/jbcrail/following{/other_user}","gists_url":"https://api.github.com/users/jbcrail/gists{/gist_id}","starred_url":"https://api.github.com/users/jbcrail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbcrail/subscriptions","organizations_url":"https://api.github.com/users/jbcrail/orgs","repos_url":"https://api.github.com/users/jbcrail/repos","events_url":"https://api.github.com/users/jbcrail/events{/privacy}","received_events_url":"https://api.github.com/users/jbcrail/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-09-10T12:00:42Z","updated_at":"2017-09-30T12:01:10Z","closed_at":"2017-09-30T12:01:10Z","author_association":"NONE","body":"I'm wondering if there is a parameter required to capture the upper right corner point (1.2, 1.2) in datashader.\r\n\r\n\r\nINPUT DATA\r\n```\r\ntime,lon,lat\r\n1,1.0,1.0\r\n2,1.1,1.1\r\n3,1.2,1.2\r\n```\r\n\r\n\r\n**2DHistogram:** \r\n```\r\n        df=df[['_x','_y']].compute()\r\n        minx=df._x.min()\r\n        maxx=df._x.max()\r\n        miny=df._y.min()\r\n        maxy=df._y.max()\r\n        xbins=outputsizedict['xpixels']\r\n        ybins=outputsizedict['ypixels']\r\n\r\n        xedges, yedges = np.linspace(minx,maxx,xbins), np.linspace(miny,maxy,ybins)\r\n        hist, xedges, yedges = np.histogram2d(df._x, df._y, (xedges, yedges))\r\n        xidx = np.clip(np.digitize(df._x, xedges, right=True), 0, hist.shape[0]-1)\r\n        yidx = np.clip(np.digitize(df._y, yedges, right=True), 0, hist.shape[1]-1)\r\n        z=np.zeros((yedges.shape[0],xedges.shape[0]),dtype=np.uint32)\r\n        z[yidx,xidx]=hist[xidx,yidx]\r\n        z=np.flipud(z)\r\n```\r\n\r\n**Datashader:** \r\n```\r\nagg=cvs.points(df, '_x', '_y', ds.count('_t'))\r\nimg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