{"action":"opened","issue":{"url":"https://api.github.com/repos/plotly/plotly.py/issues/1278","repository_url":"https://api.github.com/repos/plotly/plotly.py","labels_url":"https://api.github.com/repos/plotly/plotly.py/issues/1278/labels{/name}","comments_url":"https://api.github.com/repos/plotly/plotly.py/issues/1278/comments","events_url":"https://api.github.com/repos/plotly/plotly.py/issues/1278/events","html_url":"https://github.com/plotly/plotly.py/issues/1278","id":382658809,"node_id":"MDU6SXNzdWUzODI2NTg4MDk=","number":1278,"title":"Create a \"stick-inside\" mode for ticks labels","user":{"login":"EBoisseauSierra","id":37387755,"node_id":"MDQ6VXNlcjM3Mzg3NzU1","avatar_url":"https://avatars0.githubusercontent.com/u/37387755?v=4","gravatar_id":"","url":"https://api.github.com/users/EBoisseauSierra","html_url":"https://github.com/EBoisseauSierra","followers_url":"https://api.github.com/users/EBoisseauSierra/followers","following_url":"https://api.github.com/users/EBoisseauSierra/following{/other_user}","gists_url":"https://api.github.com/users/EBoisseauSierra/gists{/gist_id}","starred_url":"https://api.github.com/users/EBoisseauSierra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EBoisseauSierra/subscriptions","organizations_url":"https://api.github.com/users/EBoisseauSierra/orgs","repos_url":"https://api.github.com/users/EBoisseauSierra/repos","events_url":"https://api.github.com/users/EBoisseauSierra/events{/privacy}","received_events_url":"https://api.github.com/users/EBoisseauSierra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-20T13:17:21Z","updated_at":"2018-11-20T13:17:21Z","closed_at":null,"author_association":"NONE","body":"Context\r\n---\r\n\r\nSay we have a first quadrant chart:\r\n\r\n![ticks1](https://user-images.githubusercontent.com/37387755/48774730-ec798e80-ecc2-11e8-9177-664081d5b63b.png)\r\n\r\nOne can notice that ticks' label are horizontally/vertically centred (compared to the ticks themselves) on the horizontal/vertical axis, respectively. \r\n\r\nThis makes that  first and last ticks value \"stick out\" from the graph; what can be a bit ungainly — especially if one shows one axis only:\r\n\r\n![ticks2](https://user-images.githubusercontent.com/37387755/48775069-de783d80-ecc3-11e8-9526-4ce9cf819552.png)\r\n\r\nThis is also inconvenient when you want to precisely align you axes with elements surrounding your picture (e.g., in the example above, if you want the `0%` tick mark to be the most-left point of the picture).\r\n\r\n\r\nQuestion\r\n---\r\n\r\n**➥ Could it be possible to have a \"stick inside\" mode for ticks values?**\r\n\r\nThe idea is to change the vertical/horizontal alignment of the first and last ticks values: \r\n\r\n- left and right aligned, respectively, for the horizontal axis: \r\n![ticks3](https://user-images.githubusercontent.com/37387755/48775351-b210f100-ecc4-11e8-819b-61d7657ec758.png)\r\n- bottom and top aligned, respectively, for the vertical axis:\r\n![ticks4](https://user-images.githubusercontent.com/37387755/48775512-26e42b00-ecc5-11e8-89d5-65aa19842f41.png)\r\n\r\nOur first example would then look like this:\r\n![ticks5](https://user-images.githubusercontent.com/37387755/48775669-ac67db00-ecc5-11e8-98cd-75a984c3aacc.png)\r\n\r\nVariant\r\n---\r\nAn even more super-duper mode would enable us to choose which end on the axis to \"stick inside\", so that one could make such graph:\r\n![ticks6](https://user-images.githubusercontent.com/37387755/48775793-ffda2900-ecc5-11e8-9896-b3136d328e26.png)\r\n\r\n\r\n"}}
{"actor":{"display_login":"EBoisseauSierra"}}