{"action":"created","issue":{"url":"https://api.github.com/repos/timbod7/haskell-chart/issues/47","labels_url":"https://api.github.com/repos/timbod7/haskell-chart/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/timbod7/haskell-chart/issues/47/comments","events_url":"https://api.github.com/repos/timbod7/haskell-chart/issues/47/events","html_url":"https://github.com/timbod7/haskell-chart/pull/47","id":41482972,"number":47,"title":"Added Contour plots with a test.","user":{"login":"alex404","id":2581658,"avatar_url":"https://avatars.githubusercontent.com/u/2581658?v=3","gravatar_id":"","url":"https://api.github.com/users/alex404","html_url":"https://github.com/alex404","followers_url":"https://api.github.com/users/alex404/followers","following_url":"https://api.github.com/users/alex404/following{/other_user}","gists_url":"https://api.github.com/users/alex404/gists{/gist_id}","starred_url":"https://api.github.com/users/alex404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex404/subscriptions","organizations_url":"https://api.github.com/users/alex404/orgs","repos_url":"https://api.github.com/users/alex404/repos","events_url":"https://api.github.com/users/alex404/events{/privacy}","received_events_url":"https://api.github.com/users/alex404/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-08-29T09:07:53Z","updated_at":"2015-05-02T10:52:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/timbod7/haskell-chart/pulls/47","html_url":"https://github.com/timbod7/haskell-chart/pull/47","diff_url":"https://github.com/timbod7/haskell-chart/pull/47.diff","patch_url":"https://github.com/timbod7/haskell-chart/pull/47.patch"},"body":"Here's my contour plot code. The bulk is the algorithm which actually generates the contours - the interface is relatively simple. I'll be open to improving it on request.\r\n\r\nOne outstanding issue is still that without any kind of line smoothing, it's hard to prevent the contours from having a blocky appearance. Over time this has bothered me less though, because the fact that standard contour plotting algorithms do apply line smoothing without informing the user is a bit disengenuous.\r\n\r\nAnyway, maybe one day we'll get line smoothing into Chart.\r\n\r\n![2D Sin Wave](https://cloud.githubusercontent.com/assets/2581658/4088330/ea7e6516-2f5b-11e4-8df7-15aa5de814dd.png)\r\n"},"comment":{"url":"https://api.github.com/repos/timbod7/haskell-chart/issues/comments/98347351","html_url":"https://github.com/timbod7/haskell-chart/pull/47#issuecomment-98347351","issue_url":"https://api.github.com/repos/timbod7/haskell-chart/issues/47","id":98347351,"user":{"login":"alex404","id":2581658,"avatar_url":"https://avatars.githubusercontent.com/u/2581658?v=3","gravatar_id":"","url":"https://api.github.com/users/alex404","html_url":"https://github.com/alex404","followers_url":"https://api.github.com/users/alex404/followers","following_url":"https://api.github.com/users/alex404/following{/other_user}","gists_url":"https://api.github.com/users/alex404/gists{/gist_id}","starred_url":"https://api.github.com/users/alex404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex404/subscriptions","organizations_url":"https://api.github.com/users/alex404/orgs","repos_url":"https://api.github.com/users/alex404/repos","events_url":"https://api.github.com/users/alex404/events{/privacy}","received_events_url":"https://api.github.com/users/alex404/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T10:52:55Z","updated_at":"2015-05-02T10:52:55Z","body":"So that's half the solution, as far as I can see. 'smoothie' allows us to describe smooth curves, but not solve for them in the first place.\r\n\r\nThe only fully worked out tool for spline interpolation I've seen in haskell that would work in this case is provided by Diagrams:\r\n\r\nhttps://hackage.haskell.org/package/diagrams-lib-1.3/docs/Diagrams-CubicSpline.html\r\n\r\nIs that something we could make use of? Since Chart is meant to be backend agnostic, I'm guessing not...\r\n"}}