{"action":"created","issue":{"url":"https://api.github.com/repos/ioam/holoviews/issues/346","labels_url":"https://api.github.com/repos/ioam/holoviews/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/ioam/holoviews/issues/346/comments","events_url":"https://api.github.com/repos/ioam/holoviews/issues/346/events","html_url":"https://github.com/ioam/holoviews/pull/346","id":121544428,"number":346,"title":"Added Spikes Element","user":{"login":"philippjfr","id":1550771,"avatar_url":"https://avatars.githubusercontent.com/u/1550771?v=3","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ioam/holoviews/milestones/9","html_url":"https://github.com/ioam/holoviews/milestones/v1.4.1","labels_url":"https://api.github.com/repos/ioam/holoviews/milestones/9/labels","id":1450504,"number":9,"title":"v1.4.1","description":"The bug fix release for 1.4","creator":{"login":"jlstevens","id":890576,"avatar_url":"https://avatars.githubusercontent.com/u/890576?v=3","gravatar_id":"","url":"https://api.github.com/users/jlstevens","html_url":"https://github.com/jlstevens","followers_url":"https://api.github.com/users/jlstevens/followers","following_url":"https://api.github.com/users/jlstevens/following{/other_user}","gists_url":"https://api.github.com/users/jlstevens/gists{/gist_id}","starred_url":"https://api.github.com/users/jlstevens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlstevens/subscriptions","organizations_url":"https://api.github.com/users/jlstevens/orgs","repos_url":"https://api.github.com/users/jlstevens/repos","events_url":"https://api.github.com/users/jlstevens/events{/privacy}","received_events_url":"https://api.github.com/users/jlstevens/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":3,"state":"open","created_at":"2015-12-08T18:41:54Z","updated_at":"2015-12-11T17:56:05Z","due_on":null,"closed_at":null},"comments":28,"created_at":"2015-12-10T18:03:56Z","updated_at":"2015-12-11T19:41:27Z","closed_at":"2015-12-11T16:18:12Z","pull_request":{"url":"https://api.github.com/repos/ioam/holoviews/pulls/346","html_url":"https://github.com/ioam/holoviews/pull/346","diff_url":"https://github.com/ioam/holoviews/pull/346.diff","patch_url":"https://github.com/ioam/holoviews/pull/346.patch"},"body":"This PR adds the new Spikes Element. The Spikes Element is a Columns type and draws vertical or horizontal lines at the specified locations, with fixed or variable height/width. I've also added some examples to the Element tutorial.\r\n\r\nI've reproduced these examples [here](http://philippjfr.com/work/work-in-progress/spikes/). Still have to update the Element reference_data and add some docstrings for the plot options but I'll wait on some feedback before doing that."},"comment":{"url":"https://api.github.com/repos/ioam/holoviews/issues/comments/164030897","html_url":"https://github.com/ioam/holoviews/pull/346#issuecomment-164030897","issue_url":"https://api.github.com/repos/ioam/holoviews/issues/346","id":164030897,"user":{"login":"bryevdv","id":1078448,"avatar_url":"https://avatars.githubusercontent.com/u/1078448?v=3","gravatar_id":"","url":"https://api.github.com/users/bryevdv","html_url":"https://github.com/bryevdv","followers_url":"https://api.github.com/users/bryevdv/followers","following_url":"https://api.github.com/users/bryevdv/following{/other_user}","gists_url":"https://api.github.com/users/bryevdv/gists{/gist_id}","starred_url":"https://api.github.com/users/bryevdv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryevdv/subscriptions","organizations_url":"https://api.github.com/users/bryevdv/orgs","repos_url":"https://api.github.com/users/bryevdv/repos","events_url":"https://api.github.com/users/bryevdv/events{/privacy}","received_events_url":"https://api.github.com/users/bryevdv/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T19:41:27Z","updated_at":"2015-12-11T19:41:27Z","body":"@philippjfr whether clipping is on or not is controlled by the plotting \"level\". You can see here:\r\n\r\nhttps://github.com/bokeh/bokeh/blob/master/bokehjs/src/coffee/common/plot.coffee#L376\r\n\r\nThat `\"overlay\"` and `'tool\"` layers are the ones that are not clipped during rendering. I'd suggest something like:\r\n```\r\np = figure()\r\nr = p.segment(...)\r\nr.level = \"overlay\"\r\n```\r\nFair warning: this plumbing has not been exercised much, we may uncover small bugs, but I think it should be OK. "}}