{"action":"created","issue":{"url":"https://api.github.com/repos/shashi/Canvas.jl/issues/10","labels_url":"https://api.github.com/repos/shashi/Canvas.jl/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/shashi/Canvas.jl/issues/10/comments","events_url":"https://api.github.com/repos/shashi/Canvas.jl/issues/10/events","html_url":"https://github.com/shashi/Canvas.jl/issues/10","id":65488975,"number":10,"title":"Error using gadfly measurements","user":{"login":"aviks","id":378918,"avatar_url":"https://avatars.githubusercontent.com/u/378918?v=3","gravatar_id":"","url":"https://api.github.com/users/aviks","html_url":"https://github.com/aviks","followers_url":"https://api.github.com/users/aviks/followers","following_url":"https://api.github.com/users/aviks/following{/other_user}","gists_url":"https://api.github.com/users/aviks/gists{/gist_id}","starred_url":"https://api.github.com/users/aviks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviks/subscriptions","organizations_url":"https://api.github.com/users/aviks/orgs","repos_url":"https://api.github.com/users/aviks/repos","events_url":"https://api.github.com/users/aviks/events{/privacy}","received_events_url":"https://api.github.com/users/aviks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-31T16:16:42Z","updated_at":"2015-03-31T17:11:51Z","closed_at":null,"body":"If I change the plot command in `plot.jl` to the following\r\n\r\n```julia\r\nplot([x -> sin(x + phase), x -> cos(x + phase)], 0, 6, \r\n                xintercept=[-.55, +.5], Geom.vline(color=\"purple\", size=0.2mm))\r\n```\r\n\r\nI get the following error on the console: \r\n\r\n```\r\nError handling websocket connection:\r\ntype: typeassert: expected Union(Measure{S,T},Nothing), got Length{:mm}\r\n in anonymous at /Users/aviks/.julia/v0.3/Canvas/examples/plot.jl:9\r\n in main at /Users/aviks/.julia/v0.3/Canvas/examples/plot.jl:8\r\n in uisocket at /Users/aviks/.julia/v0.3/Canvas/bin/canvasd:111\r\n in anonymous at /Users/aviks/.julia/v0.3/Mux/src/Mux.jl:15\r\n in anonymous at /Users/aviks/.julia/v0.3/Mux/src/Mux.jl:8\r\n in splitquery at /Users/aviks/.julia/v0.3/Mux/src/basics.jl:28\r\n in anonymous at /Users/aviks/.julia/v0.3/Mux/src/Mux.jl:8\r\n in wcatch at /Users/aviks/.julia/v0.3/Mux/src/websockets.jl:12\r\n in anonymous at /Users/aviks/.julia/v0.3/Mux/src/Mux.jl:8\r\n in todict at /Users/aviks/.julia/v0.3/Mux/src/basics.jl:21\r\n in anonymous at /Users/aviks/.julia/v0.3/Mux/src/Mux.jl:12 (repeats 2 times)\r\n in anonymous at /Users/aviks/.julia/v0.3/Mux/src/Mux.jl:8\r\n in anonymous at /Users/aviks/.julia/v0.3/Mux/src/server.jl:36\r\n in handle at /Users/aviks/.julia/v0.3/WebSockets/src/WebSockets.jl:287\r\n in on_message_complete at /Users/aviks/.julia/v0.3/HttpServer/src/HttpServer.jl:296\r\n in on_message_complete at /Users/aviks/.julia/v0.3/HttpServer/src/RequestParser.jl:99\r\n in http_parser_execute at /Users/aviks/.julia/v0.3/HttpParser/src/HttpParser.jl:106\r\n in add_data at /Users/aviks/.julia/v0.3/HttpServer/src/RequestParser.jl:148\r\n in process_client at /Users/aviks/.julia/v0.3/HttpServer/src/HttpServer.jl:267\r\n in anonymous at task.jl:340\r\n```\r\n\r\nIf I change the `size=0.2mm` to `size=0.2em`, then the error becomes:\r\n `type: typeassert: expected Union(Measure{S,T},Nothing), got Length{:em}`"},"comment":{"url":"https://api.github.com/repos/shashi/Canvas.jl/issues/comments/88174711","html_url":"https://github.com/shashi/Canvas.jl/issues/10#issuecomment-88174711","issue_url":"https://api.github.com/repos/shashi/Canvas.jl/issues/10","id":88174711,"user":{"login":"dcjones","id":210361,"avatar_url":"https://avatars.githubusercontent.com/u/210361?v=3","gravatar_id":"","url":"https://api.github.com/users/dcjones","html_url":"https://github.com/dcjones","followers_url":"https://api.github.com/users/dcjones/followers","following_url":"https://api.github.com/users/dcjones/following{/other_user}","gists_url":"https://api.github.com/users/dcjones/gists{/gist_id}","starred_url":"https://api.github.com/users/dcjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcjones/subscriptions","organizations_url":"https://api.github.com/users/dcjones/orgs","repos_url":"https://api.github.com/users/dcjones/repos","events_url":"https://api.github.com/users/dcjones/events{/privacy}","received_events_url":"https://api.github.com/users/dcjones/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T17:11:51Z","updated_at":"2015-03-31T17:11:51Z","body":"> Maybe we could separate this stuff into a Measures.jl library and use it in both. Cc @dcjones\r\n\r\nThat would be appealing if we can reconcile the Compose and Canvas definitions of things. Though, at one point we wanted to try to combine the SIUnits and Compose definitions of things like `inch` and `mm`, but decided it didn't make a lot of sense.\r\n\r\nThe measures in Compose differ from Canvas in that they need to represent sums of absolute and relative unit types: like `3mm + 0.5cx`. I'm not sure the best way to make that work with the more obvious definitions in Canvas.\r\n"}}