{"action":"created","issue":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/2093","repository_url":"https://api.github.com/repos/bokeh/bokeh","labels_url":"https://api.github.com/repos/bokeh/bokeh/issues/2093/labels{/name}","comments_url":"https://api.github.com/repos/bokeh/bokeh/issues/2093/comments","events_url":"https://api.github.com/repos/bokeh/bokeh/issues/2093/events","html_url":"https://github.com/bokeh/bokeh/issues/2093","id":63743803,"number":2093,"title":"multiple y-axes don't plot things independently","user":{"login":"nevermindewe","id":5727768,"avatar_url":"https://avatars1.githubusercontent.com/u/5727768?v=4","gravatar_id":"","url":"https://api.github.com/users/nevermindewe","html_url":"https://github.com/nevermindewe","followers_url":"https://api.github.com/users/nevermindewe/followers","following_url":"https://api.github.com/users/nevermindewe/following{/other_user}","gists_url":"https://api.github.com/users/nevermindewe/gists{/gist_id}","starred_url":"https://api.github.com/users/nevermindewe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevermindewe/subscriptions","organizations_url":"https://api.github.com/users/nevermindewe/orgs","repos_url":"https://api.github.com/users/nevermindewe/repos","events_url":"https://api.github.com/users/nevermindewe/events{/privacy}","received_events_url":"https://api.github.com/users/nevermindewe/received_events","type":"User","site_admin":false},"labels":[{"id":2031798,"url":"https://api.github.com/repos/bokeh/bokeh/labels/reso:%20invalid","name":"reso: invalid","color":"345065","default":false},{"id":91228996,"url":"https://api.github.com/repos/bokeh/bokeh/labels/type:%20discussion","name":"type: discussion","color":"2659A0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/bokeh/bokeh/milestones/20","html_url":"https://github.com/bokeh/bokeh/milestone/20","labels_url":"https://api.github.com/repos/bokeh/bokeh/milestones/20/labels","id":1211575,"number":20,"title":"0.10.0","description":"","creator":{"login":"damianavila","id":1640669,"avatar_url":"https://avatars2.githubusercontent.com/u/1640669?v=4","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":0,"closed_issues":96,"state":"closed","created_at":"2015-07-16T17:15:42Z","updated_at":"2015-09-28T19:42:22Z","due_on":null,"closed_at":"2015-09-28T19:42:22Z"},"comments":3,"created_at":"2015-03-23T14:57:18Z","updated_at":"2018-03-12T15:32:00Z","closed_at":"2015-09-09T17:24:49Z","author_association":"NONE","body":"In the code below, an extra y-axis is created and placed on the right side of the figure.\nThe x3 and y3 data are plotted against the y axis on the right side of the figure instead of the normal left side.\nWhen the \"y3\" data is small, the plot looks as expected.\nWhen y3 is changed to 'y3':[5,10,150], the y-axis on the left side of the figure changes its range.\nIt seems like that shouldn't happen.\nThe expected behavior is that the y-axis on the left side won't change at all (since the f.circle call explicitly uses the 'extra_y' axis.\n\n```\nfrom bokeh.plotting import figure, show, ColumnDataSource, output_file\nfrom bokeh.models import Grid, GridPlot, LinearAxis, Plot, Range1d, DatetimeAxis\n\noutput_file(\"/tmp/bokeh_test_multiaxis.html\")\n\nx1_data = [1,2,3]\ny1_data = [4,5,6]\n\nx2_data = [20,30,40]\ny2_data = [40,50,60]\n\n#If y3 is changed to 'y3':[5,10,150], the left y-axis range changes.                                                                                            \n#It seems like that should not happen.                                                                                                                          \n#The desired behavior is to have each y-axis be independent of each other                                                                                       \n#  so that we can plot different things on the same figure                                                                                                      \nsource = ColumnDataSource(data={'x1':x1_data, 'y1':y1_data,\n                                'x2':x2_data, 'y2':y2_data,\n                                'x3':[5,10,15], 'y3':[5,10,15], 'r3':[.5,.75,1]})\n\nf = figure()\nf.extra_y_ranges={\"extra_y\":Range1d(start=0, end=200)}\ny2_axis = LinearAxis(y_range_name=\"extra_y\")\nf.line(x1_data, y1_data)\nf.line(x2_data, y2_data)\nf.add_layout(y2_axis, 'right')\n\nf.circle(x='x3', y='y3', radius='r3', source=source, y_range_name='extra_y')\n\nshow(f)\n```\n"},"comment":{"url":"https://api.github.com/repos/bokeh/bokeh/issues/comments/372351822","html_url":"https://github.com/bokeh/bokeh/issues/2093#issuecomment-372351822","issue_url":"https://api.github.com/repos/bokeh/bokeh/issues/2093","id":372351822,"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-03-12T15:32:00Z","updated_at":"2018-03-12T15:32:00Z","author_association":"OWNER","body":"As I stated above, the best practice with multiple ranges is to manage the range bounds explicitly. However, you can also try setting the `renderers` property of the the DataRange models so that they only range the specific glyphs you care about (by default the auto range any and all glyphs in the plot)"}}
{"actor":{"display_login":"bryevdv"}}