{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/6493","repository_url":"https://api.github.com/repos/bokeh/bokeh","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/6493/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/6493/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/6493/events","html_url":"https://github.com/bokeh/bokeh/issues/6493","id":236800128,"number":6493,"title":"Regression with stacked rectangles","user":{"login":"jjouganous","id":15675162,"avatar_url":"https://avatars2.githubusercontent.com/u/15675162?v=4","gravatar_id":"","url":"https://api.github.com/users/jjouganous","html_url":"https://github.com/jjouganous","followers_url":"https://api.github.com/users/jjouganous/followers","following_url":"https://api.github.com/users/jjouganous/following{/other_user}","gists_url":"https://api.github.com/users/jjouganous/gists{/gist_id}","starred_url":"https://api.github.com/users/jjouganous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjouganous/subscriptions","organizations_url":"https://api.github.com/users/jjouganous/orgs","repos_url":"https://api.github.com/users/jjouganous/repos","events_url":"https://api.github.com/users/jjouganous/events{/privacy}","received_events_url":"https://api.github.com/users/jjouganous/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-19T07:18:48Z","updated_at":"2018-05-11T01:28:13Z","closed_at":"2018-05-11T01:28:13Z","author_association":"NONE","body":"Hello,\r\nI've just updated bokeh, from 0.12.4 to 0.12.6, and I notice unexpected behaviors on a stacked rectangles plot based on the following example : \r\n[http://bokeh.pydata.org/en/0.12.5/docs/gallery/stacked_bar_chart.html](url).\r\nI isolated a minimal example. The expected plot, that I get with version 0.12.4 is given below:\r\n![example_0 12 4](https://user-images.githubusercontent.com/15675162/27273545-ce5699de-54cf-11e7-8c8b-0dddecfa7de5.png)\r\nUnder version 0.12.6, some rectangles are plotted unexpectedly as negative values: \r\n![example_0 12 6](https://user-images.githubusercontent.com/15675162/27273594-09d939b2-54d0-11e7-94c5-b9fc278cfd20.png)\r\nThe minimal code I used for these plots is given below:\r\n\r\n```\r\nfrom bokeh.layouts import layout\r\nfrom bokeh.io import curdoc\r\nfrom bokeh.models import ColumnDataSource\r\nfrom bokeh.plotting import figure\r\n\r\nimport pandas as pd\r\nimport numpy as np\r\n\r\n\r\ndf = pd.DataFrame({'cat2':['AAA', 'BBB'], 'y_g1':[0.0, 1.0], 'y_g2':[0.0, 2.0],\r\n                   'y_g3':[3, 2.0], 'g_1':[0.0, 2.0], 'g_2':[0.0, 0.0],\r\n                   'g_3':[6.0, 0.0]})\r\n\r\n\r\ndatasource2 = ColumnDataSource({\"cat2\":[], \"y_g1\":[], \"y_g2\":[], \"y_g3\":[], \"g_1\":[], \"g_2\":[], \"g_3\":[], \"gamme_cd_1\":[], \"gamme_cd_2\":[]})\r\n\r\nplot2 = figure(width=1000, height=700, x_range=list(datasource2.data[\"cat2\"]))\r\n\r\nplot2.rect(x=\"cat2\", y=\"y_g1\", width=0.8, height=\"g_1\", source=datasource2, color=\"#CD7F32\", alpha=0.6, name='rect_gamme1')\r\nplot2.rect(x=\"cat2\", y=\"y_g2\", width=0.8, height=\"g_2\", source=datasource2, color=\"silver\", alpha=0.6, name='rect_gamme2')\r\nplot2.rect(x=\"cat2\", y=\"y_g3\", width=0.8, height=\"g_3\", source=datasource2, color=\"gold\", alpha=0.6, name='rect_gamme3')\r\nplot2.xaxis.major_label_orientation = np.pi/4\r\nplot2.xgrid.grid_line_color = None\r\n#plot2.y_range.start = 0\r\n\r\nplot2.x_range.factors = list(df.cat2)\r\ndatasource2.data = ColumnDataSource.from_df(df)\r\n\r\n\r\nl1 = layout([[plot2]], sizing_mode='fixed')\r\n\r\ncurdoc().add_root(l1)\r\ncurdoc().title = \"Test\"\r\n```\r\n\r\nThanks!!\r\n\r\nJulien\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/388232554","html_url":"https://github.com/bokeh/bokeh/issues/6493#issuecomment-388232554","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/6493","id":388232554,"user":{"login":"bryevdv","id":1078448,"avatar_url":"https://avatars3.githubusercontent.com/u/1078448?v=4","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":"2018-05-11T01:28:13Z","updated_at":"2018-05-11T01:28:13Z","author_association":"OWNER","body":"This was fixed at some point, code on `master` now produces:\r\n\r\n<img width=\"865\" alt=\"screen shot 2018-05-10 at 18 27 42\" src=\"https://user-images.githubusercontent.com/1078448/39901853-e305b79c-547f-11e8-9d61-6d218dbbaaa9.png\">\r\n"}}
{"actor":{"display_login":"bryevdv"}}