plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

More control over tick text alignment

Open cpsievert opened this issue 8 years ago • 8 comments
trafficstars

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 avatar May 11 '17 18:05 cpsievert

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

image

bpostlethwaite avatar Jul 10 '18 14:07 bpostlethwaite

Basically here we just want a new ticksbetweenlabels boolean.

nicolaskruchten avatar Oct 09 '18 14:10 nicolaskruchten

@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.

alexcjohnson avatar Oct 09 '18 14:10 alexcjohnson

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

nicolaskruchten avatar Oct 09 '18 14:10 nicolaskruchten

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

Braintelligence avatar Dec 20 '18 10:12 Braintelligence

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

etpinard avatar Dec 20 '18 14:12 etpinard

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

emmanuelle avatar Oct 21 '19 13:10 emmanuelle

This issue would be resolved by #7006.

archmoj avatar Jun 17 '24 13:06 archmoj