{"action":"created","issue":{"url":"https://api.github.com/repos/SSPkrolik/nimxplot/issues/1","labels_url":"https://api.github.com/repos/SSPkrolik/nimxplot/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/SSPkrolik/nimxplot/issues/1/comments","events_url":"https://api.github.com/repos/SSPkrolik/nimxplot/issues/1/events","html_url":"https://github.com/SSPkrolik/nimxplot/issues/1","id":124578298,"number":1,"title":"Sample usage in README doesn't compile","user":{"login":"bonsairobo","id":3229981,"avatar_url":"https://avatars.githubusercontent.com/u/3229981?v=3","gravatar_id":"","url":"https://api.github.com/users/bonsairobo","html_url":"https://github.com/bonsairobo","followers_url":"https://api.github.com/users/bonsairobo/followers","following_url":"https://api.github.com/users/bonsairobo/following{/other_user}","gists_url":"https://api.github.com/users/bonsairobo/gists{/gist_id}","starred_url":"https://api.github.com/users/bonsairobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonsairobo/subscriptions","organizations_url":"https://api.github.com/users/bonsairobo/orgs","repos_url":"https://api.github.com/users/bonsairobo/repos","events_url":"https://api.github.com/users/bonsairobo/events{/privacy}","received_events_url":"https://api.github.com/users/bonsairobo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-02T06:45:29Z","updated_at":"2016-01-31T18:56:31Z","closed_at":null,"body":"`flip_coins.nim(16, 20) Error: type mismatch: got (Rect, seq[tuple[x: float64, y: float64]])\r\nbut expected one of: \r\nplotxy.newPlotXY(r: Rect, model: ModelXYColor[system.float64])`"},"comment":{"url":"https://api.github.com/repos/SSPkrolik/nimxplot/issues/comments/177583998","html_url":"https://github.com/SSPkrolik/nimxplot/issues/1#issuecomment-177583998","issue_url":"https://api.github.com/repos/SSPkrolik/nimxplot/issues/1","id":177583998,"user":{"login":"robfinner","id":2251662,"avatar_url":"https://avatars.githubusercontent.com/u/2251662?v=3","gravatar_id":"","url":"https://api.github.com/users/robfinner","html_url":"https://github.com/robfinner","followers_url":"https://api.github.com/users/robfinner/followers","following_url":"https://api.github.com/users/robfinner/following{/other_user}","gists_url":"https://api.github.com/users/robfinner/gists{/gist_id}","starred_url":"https://api.github.com/users/robfinner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfinner/subscriptions","organizations_url":"https://api.github.com/users/robfinner/orgs","repos_url":"https://api.github.com/users/robfinner/repos","events_url":"https://api.github.com/users/robfinner/events{/privacy}","received_events_url":"https://api.github.com/users/robfinner/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T18:56:31Z","updated_at":"2016-01-31T18:56:31Z","body":"I added a PR to fix this. Change the example call to: \r\n\r\nvar gxy = newPlotXY(\r\n  newRect(0, 0, 1024, 768),\r\n  @[(x: 0.0, y: 0.0, color: blackColor()), (x: 10.0, y: 10.0, color: blackColor()), (x: 20.0, y: 10.0, color: blackColor()),\r\n    (x: 60.0, y: 300.0, color: blackColor()), (x: 100.0, y: 200.0, color: blackColor())]\r\n)\r\n"}}