Skip to content
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

More control over tick text alignment #1673

Closed
cpsievert opened this issue May 11, 2017 · 8 comments · Fixed by #7006
Closed

More control over tick text alignment #1673

cpsievert opened this issue May 11, 2017 · 8 comments · Fixed by #7006
Assignees
Labels
feature something new
Milestone

Comments

@cpsievert
Copy link

Perhaps via layout.axisid.tickalign & layout.axisid.tickvalign -- both accepting a number on a 0-1 scale? Here's an example of tickalign=1 (the default) vs tickalign=0
screen shot 2017-05-11 at 1 30 04 pm
screen shot 2017-05-11 at 1 30 27 pm

@cpsievert cpsievert added the feature something new label May 11, 2017
@cpsievert cpsievert added this to the ggplotly parity milestone May 11, 2017
@bpostlethwaite
Copy link
Member

Another use case is centering labels between ticks. A request has come in to replicate this type of label positioning

image

@nicolaskruchten
Copy link
Contributor

Basically here we just want a new ticksbetweenlabels boolean.

@alexcjohnson
Copy link
Collaborator

@cpsievert was talking here about how to align the tick label relative to its anchor point. I see that as a very different feature from whether the ticks and labels even have the same anchor point - which is the subject of #2601, lets continue the latter discussion over there.

@nicolaskruchten
Copy link
Contributor

Ah you're right, sorry. @bpostlethwaite had tagged this issue so I just followed suit :)

@Braintelligence
Copy link

@nicolaskruchten Does the latest release allow ticksbetweenlabels for other types than category?

@etpinard
Copy link
Contributor

No, tickson: 'boundaries' is only available for 'category' and 'multicategory' axes at the moment.

@emmanuelle
Copy link
Contributor

The ticksbetweenlabels boolean would be really useful for heatmaps and images, in order to have ticks at the boundary between pixels.

@archmoj
Copy link
Contributor

archmoj commented Jun 17, 2024

This issue would be resolved by #7006.

@archmoj archmoj modified the milestones: ggplotly parity, v2.34.0 Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants