{"action":"created","issue":{"url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/80","labels_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/80/comments","events_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/80/events","html_url":"https://github.com/tbreloff/Plots.jl/issues/80","id":118206303,"number":80,"title":"Countour plots are incorrect","user":{"login":"Evizero","id":10854026,"avatar_url":"https://avatars.githubusercontent.com/u/10854026?v=3","gravatar_id":"","url":"https://api.github.com/users/Evizero","html_url":"https://github.com/Evizero","followers_url":"https://api.github.com/users/Evizero/followers","following_url":"https://api.github.com/users/Evizero/following{/other_user}","gists_url":"https://api.github.com/users/Evizero/gists{/gist_id}","starred_url":"https://api.github.com/users/Evizero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evizero/subscriptions","organizations_url":"https://api.github.com/users/Evizero/orgs","repos_url":"https://api.github.com/users/Evizero/repos","events_url":"https://api.github.com/users/Evizero/events{/privacy}","received_events_url":"https://api.github.com/users/Evizero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-21T16:17:40Z","updated_at":"2015-11-21T16:18:42Z","closed_at":null,"body":"Here is an example.\r\n\r\n```Julia\r\nusing Plots\r\ngadfly()\r\n\r\nX = [0.0  0.1  0.2  0.3  0.4  0.5  0.6  0.7  0.8  0.9  1.0;\r\n     1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0  1.0]\r\ny = [1.03262, 1.06073, 1.15507, 1.08, 1.25422, 1.22779, 1.28097, 1.29575, 1.40697, 1.42855, 1.49955]\r\n\r\nh(X, θ) = X'θ\r\nL(y, t) = 1/2 * (t - y).^2\r\ncost(X, θ, y) = mean(L(y, h(X, θ)))\r\n\r\nr1 = -.5:.05:1.5\r\nr2 = 0:.05:2\r\n```\r\n\r\nThe true surface plot should look like this\r\n\r\n```Julia\r\nGadfly.plot(z = (θ1, θ2) -> cost(X, [θ1, θ2], y), x = r1, y = r2, Gadfly.Geom.contour)\r\n```\r\n![gadfly](https://cloud.githubusercontent.com/assets/10854026/11319338/a5fe3612-9073-11e5-8fd6-51afbd1796c6.png)\r\n\r\n\r\nPlots.jl shows it like this\r\n\r\n```Julia\r\nplot(r1, r2, (θ1, θ2) -> cost(X, [θ1, θ2], y))\r\n```\r\n![plots](https://cloud.githubusercontent.com/assets/10854026/11319339/a936efea-9073-11e5-87d5-986df3757df8.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/comments/158659616","html_url":"https://github.com/tbreloff/Plots.jl/issues/80#issuecomment-158659616","issue_url":"https://api.github.com/repos/tbreloff/Plots.jl/issues/80","id":158659616,"user":{"login":"Evizero","id":10854026,"avatar_url":"https://avatars.githubusercontent.com/u/10854026?v=3","gravatar_id":"","url":"https://api.github.com/users/Evizero","html_url":"https://github.com/Evizero","followers_url":"https://api.github.com/users/Evizero/followers","following_url":"https://api.github.com/users/Evizero/following{/other_user}","gists_url":"https://api.github.com/users/Evizero/gists{/gist_id}","starred_url":"https://api.github.com/users/Evizero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evizero/subscriptions","organizations_url":"https://api.github.com/users/Evizero/orgs","repos_url":"https://api.github.com/users/Evizero/repos","events_url":"https://api.github.com/users/Evizero/events{/privacy}","received_events_url":"https://api.github.com/users/Evizero/received_events","type":"User","site_admin":false},"created_at":"2015-11-21T16:18:42Z","updated_at":"2015-11-21T16:18:42Z","body":"Simpleton me would suspect that the x axis is mirrored somehow"}}