-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a "stick-inside" mode for ticks labels #3292
Comments
Thanks for writing in. This request seems very related to #1673 |
@etpinard Indeed! (The catch is here to provide a separate |
.. or do something like https://plot.ly/javascript/reference/#layout-xaxis-showexponent with values |
that could be a solution. My initial thoughts were to be able to:
|
any update on this? |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
Context
Say we have a first quadrant chart:
One can notice that ticks' labels are horizontally/vertically centred (compared to the ticks themselves) on the horizontal/vertical axis, respectively.
This 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:
This 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).Question
➥ Could it be possible to have a "stick inside" mode for ticks values?
The idea is to change the vertical/horizontal alignment of the first and last ticks values:
left and right aligned, respectively, for the horizontal axis:

bottom and top aligned, respectively, for the vertical axis:

Our first example would then look like this:

Variant
An 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:

The text was updated successfully, but these errors were encountered: