{"action":"closed","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2698","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2698/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2698/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2698/events","html_url":"https://github.com/bokeh/bokeh/issues/2698","id":99685501,"number":2698,"title":"plot.text(legend=\"\") results in console traceback and clipped legend rendering","user":{"login":"Lingnik","id":478059,"avatar_url":"https://avatars.githubusercontent.com/u/478059?v=3","gravatar_id":"","url":"https://api.github.com/users/Lingnik","html_url":"https://github.com/Lingnik","followers_url":"https://api.github.com/users/Lingnik/followers","following_url":"https://api.github.com/users/Lingnik/following{/other_user}","gists_url":"https://api.github.com/users/Lingnik/gists{/gist_id}","starred_url":"https://api.github.com/users/Lingnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lingnik/subscriptions","organizations_url":"https://api.github.com/users/Lingnik/orgs","repos_url":"https://api.github.com/users/Lingnik/repos","events_url":"https://api.github.com/users/Lingnik/events{/privacy}","received_events_url":"https://api.github.com/users/Lingnik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20bug","name":"type: bug","color":"C02942"}],"state":"closed","locked":false,"assignee":{"login":"canavandl","id":2198981,"avatar_url":"https://avatars.githubusercontent.com/u/2198981?v=3","gravatar_id":"","url":"https://api.github.com/users/canavandl","html_url":"https://github.com/canavandl","followers_url":"https://api.github.com/users/canavandl/followers","following_url":"https://api.github.com/users/canavandl/following{/other_user}","gists_url":"https://api.github.com/users/canavandl/gists{/gist_id}","starred_url":"https://api.github.com/users/canavandl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canavandl/subscriptions","organizations_url":"https://api.github.com/users/canavandl/orgs","repos_url":"https://api.github.com/users/canavandl/repos","events_url":"https://api.github.com/users/canavandl/events{/privacy}","received_events_url":"https://api.github.com/users/canavandl/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/11","html_url":"https://github.com/bokeh/bokeh/milestones/short-term","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://avatars.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":257,"closed_issues":32,"state":"open","created_at":"2014-10-02T12:30:03Z","updated_at":"2015-08-11T16:55:34Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-07T16:44:56Z","updated_at":"2015-08-11T16:55:34Z","closed_at":"2015-08-11T16:55:34Z","body":"```python\r\nplot.line(x, y1, legend=\"Change\", line_width=2)\r\nplot.circle(x, y2, legend=\"Peaks\", fill_color=\"white\", size=8)\r\nplot.text(x3, y2, text=y3_data, text_color=\"blue\", legend=\"x\")\r\nplot.text(x3, y2, text=y3_data, text_color=\"red\", legend=\"y\")\r\n```\r\n\r\nThe legend should have two text glyph entries; x and y. If I render a text glyph before other (normal) glyphs, then all of the legend entries are blank, though space is allocated for them.\r\n![image](https://cloud.githubusercontent.com/assets/478059/9140725/18e71872-3ce8-11e5-863c-e3dcb0c30a80.png)\r\n\r\n```python\r\nplot.text(x3, y2, text=y3_data, text_color=\"blue\", legend=\"x\")\r\nplot.text(x3, y2, text=y3_data, text_color=\"red\", legend=\"y\")\r\nplot.line(x, y1, legend=\"Change\", line_width=2)\r\nplot.circle(x, y2, legend=\"Peaks\", fill_color=\"white\", size=8)\r\n```\r\n![image](https://cloud.githubusercontent.com/assets/478059/9140760/43e83380-3ce8-11e5-8cd2-07e817839f78.png)\r\n\r\n```\r\nbokeh-0.9.2.js:53135\r\nUncaught TypeError: text_props.font is not a function\r\n114.TextView.draw_legend @ bokeh-0.9.2.js:53135\r\n87.GlyphRendererView.draw_legend @ bokeh-0.9.2.js:50016\r\n77.LegendView.render @ bokeh-0.9.2.js:48049\r\n50.PlotView._render_levels @ bokeh-0.9.2.js:44183\r\n50.PlotView.render @ bokeh-0.9.2.js:44148\r\n53.later @ bokeh-0.9.2.js:44617\r\n```\r\n\r\n\r\nThe line that I commented here causes the legend to render correctly:\r\n![image](https://cloud.githubusercontent.com/assets/478059/9140651/9d299b88-3ce7-11e5-89b7-0f910a9e00c1.png)\r\n\r\nBut also, sadly, does not show 'txt' in the color I specified for the glyph:\r\n![image](https://cloud.githubusercontent.com/assets/478059/9140712/01a6b55a-3ce8-11e5-8a22-41226c61716b.png)"}}