-
Notifications
You must be signed in to change notification settings - Fork 1
tickValues
Jeremy Faden edited this page Oct 15, 2021
·
5 revisions
The axes have the property "tickValues" which when non-empty control the position of ticks. This has the form <majorSpec>/<minorSpec>, so a description of the major ticks then followed by the minor. These specifications can be a simple list of axis locations, or a spacing. For linear axes, a plus (+) is used with the spacing, and for log axes an asterisk times (*) is used. When the slash (/) and minor tick locations is missing, then the minor ticks are automatically picked, and when they are present, then the positions are specified as the number of intervals to divide between major ticks, or a list of minor tick locations. Here are some examples:
- +20 major ticks every 20 units.
- +20/5 major ticks every 20 units, with 5 minor divisions.
- *100 major ticks every two decades
- *10/10 normal log ticks, with 10 minor divisions.
- 20,30,40,50 ticks at these locations.
- 20,30,40,50/2,4,6 major ticks at the locations, with minor ticks at 22,24,26,32,34,36, etc.
- 100,200,300/50,150,250,350 explicit list of major and minor ticks.