{"action":"created","issue":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/1812","repository_url":"https://api.github.com/repos/plotly/plotly.js","labels_url":"https://api.github.com/repos/plotly/plotly.js/issues/1812/labels{/name}","comments_url":"https://api.github.com/repos/plotly/plotly.js/issues/1812/comments","events_url":"https://api.github.com/repos/plotly/plotly.js/issues/1812/events","html_url":"https://github.com/plotly/plotly.js/issues/1812","id":238198157,"number":1812,"title":"Have nticks be respected when tickmode='array'","user":{"login":"talgalili","id":976006,"avatar_url":"https://avatars3.githubusercontent.com/u/976006?v=4","gravatar_id":"","url":"https://api.github.com/users/talgalili","html_url":"https://github.com/talgalili","followers_url":"https://api.github.com/users/talgalili/followers","following_url":"https://api.github.com/users/talgalili/following{/other_user}","gists_url":"https://api.github.com/users/talgalili/gists{/gist_id}","starred_url":"https://api.github.com/users/talgalili/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talgalili/subscriptions","organizations_url":"https://api.github.com/users/talgalili/orgs","repos_url":"https://api.github.com/users/talgalili/repos","events_url":"https://api.github.com/users/talgalili/events{/privacy}","received_events_url":"https://api.github.com/users/talgalili/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-06-23T16:54:28Z","updated_at":"2017-10-20T21:47:52Z","closed_at":null,"author_association":"NONE","body":"Examples for how it should work (using R's plotly package)\r\n\r\nWorks fine:\r\n```r\r\nlibrary(plotly)\r\np <- plot_ly(\r\n    width = 800,\r\n    height = 500\r\n  ) %>% layout(\r\n    title = \"fixed-ratio axes\",\r\n    xaxis = list(\r\n      nticks = 10,\r\n      domain = c(0, 0.45)\r\n    ) )\r\np\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/976006/27492110-aa32bf48-584d-11e7-93c5-ff29ae687527.png)\r\n\r\n\r\nDoes not yet work:\r\n\r\n```r\r\n\r\nlibrary(plotly)\r\np <- plot_ly(\r\n    width = 800,\r\n    height = 500\r\n  ) %>% layout(\r\n    title = \"fixed-ratio axes\",\r\n    xaxis = list(\r\n      nticks = 10,\r\n      domain = c(0, 0.45),\r\n\ttickmode='array'\r\n    ) )\r\np\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/976006/27492104-a3f384dc-584d-11e7-8558-1be0bff98954.png)\r\n\r\n\r\nThis feature is specifically important for creating cluster-heatmaps that allow more refined control over the number of ticks (see [here](https://github.com/talgalili/heatmaply/issues/78))"},"comment":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/comments/338330233","html_url":"https://github.com/plotly/plotly.js/issues/1812#issuecomment-338330233","issue_url":"https://api.github.com/repos/plotly/plotly.js/issues/1812","id":338330233,"user":{"login":"alexcjohnson","id":2678795,"avatar_url":"https://avatars3.githubusercontent.com/u/2678795?v=4","gravatar_id":"","url":"https://api.github.com/users/alexcjohnson","html_url":"https://github.com/alexcjohnson","followers_url":"https://api.github.com/users/alexcjohnson/followers","following_url":"https://api.github.com/users/alexcjohnson/following{/other_user}","gists_url":"https://api.github.com/users/alexcjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcjohnson/subscriptions","organizations_url":"https://api.github.com/users/alexcjohnson/orgs","repos_url":"https://api.github.com/users/alexcjohnson/repos","events_url":"https://api.github.com/users/alexcjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/alexcjohnson/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T21:47:52Z","updated_at":"2017-10-20T21:47:52Z","author_association":"CONTRIBUTOR","body":"@talgalili this is separate from #1946 and #1965, as mentioned in https://github.com/plotly/plotly.js/issues/1812#issuecomment-335348104\r\n\r\nWe need to resurrect #303 and incorporate this into it. Unfortunately Plotly folks are extremely busy for the next few months so I don't see this getting addressed in the near future without a community volunteer to spearhead it."}}
{"actor":{"display_login":"alexcjohnson"}}