allow users to specify explicit tick labels
See original GitHub issueFixedTicker
allows users to specify fixed tick locations, but also need to allow users to specify explicit tick labels
Issue Analytics
- State:
- Created 9 years ago
- Reactions:2
- Comments:20 (9 by maintainers)
Top Results From Across the Web
NCL Graphics: Tick marks
This setting allows the user to explicitly specify labels. Note, when tmXBMode is set to Explicit, the bottom X-axis minor tick marks are...
Read more >How do I use custom labels for ticks in Bokeh? - Stack Overflow
Fixed ticks can just be passed directly as the "ticker" value, and major label overrides can be provided to explicitly supply custom labels...
Read more >Pgfplots with custom axis markers - LaTeX Stack Exchange
Use \xtick to specify where you want the ticks, and \xticklabels to specify the corresponding labels.
Read more >FAQ-116 How do I add or hide tick marks at specific values on ...
Go to the Special Ticks tab. Double click on a cell to edit the axis value or label for a special tick:
Read more >Matplotlib - Setting Ticks and Tick Labels
Similarly, labels corresponding to tick marks can be set by set_xlabels() and set_ylabels() functions respectively. ax.set_xlabels(['two', 'four ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok I’d like to do something for this for
0.12.6
. There’s alot that’s somewhat tangential above, mostly I’d like to return to @pzwang observation that users should not be unduly burdened with considering tickers and formatters unless it’s necessary. So I propose the following:Then internally axis models would pass this on to their tick formatters on init (or when a formatter is replaced). All the built in formatters would refer to this list of overrides (and extension formatters could as well). Users would only need to worry about supplying this mapping on an axis, which is a bit more common/approachable than tickers and formatter.
This would let specific values be overridden, however they occur. If only these ticks are desired, use of
FixedTickFormatter
would still be needed. However we could probably also make it so thatworks as a shorthand for setting up a fixed ticker.
Does this sound acceptable to everyone? If so I would plan on working on this after the refactor of categorical values.
@tommycarstensen , I haven’t tested it, but the below should work: