{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/5962","repository_url":"https://api.github.com/repos/bokeh/bokeh","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/5962/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/5962/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/5962/events","html_url":"https://github.com/bokeh/bokeh/issues/5962","id":212377034,"number":5962,"title":"add source parameter to Span or create SpanSet","user":{"login":"agilly","id":13197394,"avatar_url":"https://avatars0.githubusercontent.com/u/13197394?v=3","gravatar_id":"","url":"https://api.github.com/users/agilly","html_url":"https://github.com/agilly","followers_url":"https://api.github.com/users/agilly/followers","following_url":"https://api.github.com/users/agilly/following{/other_user}","gists_url":"https://api.github.com/users/agilly/gists{/gist_id}","starred_url":"https://api.github.com/users/agilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilly/subscriptions","organizations_url":"https://api.github.com/users/agilly/orgs","repos_url":"https://api.github.com/users/agilly/repos","events_url":"https://api.github.com/users/agilly/events{/privacy}","received_events_url":"https://api.github.com/users/agilly/received_events","type":"User","site_admin":false},"labels":[{"id":165234083,"url":"https://api.github.com/repos/bokeh/bokeh/labels/tag:%20component:%20bokehjs","name":"tag: component: bokehjs","color":"D0CBB8","default":false},{"id":2031797,"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20feature","name":"type: feature","color":"53777A","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/11","html_url":"https://github.com/bokeh/bokeh/milestone/11","labels_url":"https://api.github.com/repos/bokeh/bokeh/milestones/11/labels","id":811343,"number":11,"title":"short-term","description":"Collects issues that need to be resolved soon, but not before the next release.\r\nThis milestone is always open and it gets populated from the either the long-term milestone or from new (unmilestoned) issues.\r\n\r\nRef: https://github.com/ContinuumIO/bokeh/wiki/BEP-1:-Issues-and-PRs-management#issue-times","creator":{"login":"damianavila","id":1640669,"avatar_url":"https://avatars1.githubusercontent.com/u/1640669?v=3","gravatar_id":"","url":"https://api.github.com/users/damianavila","html_url":"https://github.com/damianavila","followers_url":"https://api.github.com/users/damianavila/followers","following_url":"https://api.github.com/users/damianavila/following{/other_user}","gists_url":"https://api.github.com/users/damianavila/gists{/gist_id}","starred_url":"https://api.github.com/users/damianavila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianavila/subscriptions","organizations_url":"https://api.github.com/users/damianavila/orgs","repos_url":"https://api.github.com/users/damianavila/repos","events_url":"https://api.github.com/users/damianavila/events{/privacy}","received_events_url":"https://api.github.com/users/damianavila/received_events","type":"User","site_admin":false},"open_issues":366,"closed_issues":1,"state":"open","created_at":"2014-10-02T12:30:03Z","updated_at":"2017-03-08T03:47:15Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-03-07T09:35:29Z","updated_at":"2017-03-09T16:24:06Z","closed_at":null,"body":"This is not a bug but rather a feature request.\r\n\r\nThe `Label` text annotation currently has a very useful corresponding `LabelSet` companion that allows to define a `ColumnDataFrame` as `source` for the text boxes.\r\n\r\nIt would be helpful to have an equivalent `SpanSet` object to draw multiple spans from a `ColumnDataFrame`. Currently, to arrive at the same result one has to hack one's way using `ray` objects bound to a data frame.\r\n\r\nCurrent way:\r\n```python\r\n# rays used as spans, y is a large negative number for vertical spans\r\np.ray(x='x', y='y', color='firebrick', length=0, angle=90, angle_units='deg', alpha='alpha', source=ray_source)\r\n```\r\n\r\nProposed way:\r\n```python\r\nspans=SpanSet(location='x', dimension='height', line_color='firebrick', alpha='alpha', source=span_source)\r\np.add_layout(spans)\r\n```\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/285401103","html_url":"https://github.com/bokeh/bokeh/issues/5962#issuecomment-285401103","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/5962","id":285401103,"user":{"login":"agilly","id":13197394,"avatar_url":"https://avatars0.githubusercontent.com/u/13197394?v=3","gravatar_id":"","url":"https://api.github.com/users/agilly","html_url":"https://github.com/agilly","followers_url":"https://api.github.com/users/agilly/followers","following_url":"https://api.github.com/users/agilly/following{/other_user}","gists_url":"https://api.github.com/users/agilly/gists{/gist_id}","starred_url":"https://api.github.com/users/agilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilly/subscriptions","organizations_url":"https://api.github.com/users/agilly/orgs","repos_url":"https://api.github.com/users/agilly/repos","events_url":"https://api.github.com/users/agilly/events{/privacy}","received_events_url":"https://api.github.com/users/agilly/received_events","type":"User","site_admin":false},"created_at":"2017-03-09T16:24:06Z","updated_at":"2017-03-09T16:24:06Z","body":"Sorry for the delay. Interest, certainly; ability, not sure. This would certainly be a first. It might take some time until I get my bearings. So far I can see 3 files that would need to be modified/created:\r\n\r\n- **bokehjs/src/coffee/models/annotations/index.ts**, modified with something like `export {SpanSet} from \"./span_set\"`\r\n- **bokehjs/src/coffee/models/annotations/span_set.coffee**, which should be modelled after `label_set.coffee`\r\n- **bokeh/models/annotations.py**, for the class definition.\r\n\r\nIs there anything else (apart from the docs)? "}}
{"actor":{"display_login":"agilly"}}