Reputation: 4003
Is there a way for the count argument to .ticks() to be a hard value that is to be adhered to exactly instead of a hint? There are some cases where this formatting is really something that you want to have.
Upvotes: 5
Views: 2585
Reputation: 109292
You can use the function .tickValues()
to set the tick values explicitly. If called with no arguments, it returns the current tick values -- this would allow you to check how many there are and add/remove/recalculate as needed.
Upvotes: 5